home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| tar archive
| default
| |
99%
| file
| tar archive (old), directory !Forthmacs.risc_os.installjob., mode 700, uid 0, gid 0, size 0, seconds 6143620725, comment: Archie
| default
| |
98%
| file
| data
| default
| |
100%
| TrID
| TAR - Tape ARchive (directory)
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| Kopftext: '!Forthmacs.risc_os.installjob.'
| default (weak)
| |
100%
| disktype
| Pre-POSIX tar archive
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 21 46 6f 72 74 68 6d 61 | 63 73 2e 72 69 73 63 5f |!Forthma|cs.risc_|
|00000010| 6f 73 2e 69 6e 73 74 61 | 6c 6c 6a 6f 62 2e 00 00 |os.insta|lljob...|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 30 30 00 00 20 20 20 20 |.... 7|00.. |
|00000070| 20 30 00 00 20 20 20 20 | 20 30 00 00 20 20 20 20 | 0.. | 0.. |
|00000080| 20 20 20 20 20 20 30 00 | 20 36 31 34 33 36 32 30 | 0.| 6143620|
|00000090| 37 32 35 00 20 31 37 31 | 33 30 00 20 35 00 00 00 |725. 171|30. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 41 72 63 68 69 65 20 | 00 33 37 37 37 37 37 37 |.Archie |.3777777|
|00000110| 36 35 30 36 00 33 31 32 | 34 30 35 32 30 36 31 37 |6506.312|40520617|
|00000120| 00 20 20 20 20 20 20 20 | 20 20 20 30 00 34 36 20 |. | 0.46 |
|00000130| 63 61 38 32 61 31 38 66 | 00 00 00 00 00 00 00 00 |ca82a18f|........|
|00000140| 00 00 00 00 00 41 00 00 | 00 00 00 00 00 00 00 00 |.....A..|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 21 46 6f 72 74 68 6d 61 | 63 73 2e 72 69 73 63 5f |!Forthma|cs.risc_|
|00000210| 6f 73 2e 69 6e 73 74 61 | 6c 6c 6a 6f 62 2e 53 70 |os.insta|lljob.Sp|
|00000220| 72 65 61 64 00 00 00 00 | 00 00 00 00 00 00 00 00 |read....|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 30 30 00 00 20 20 20 20 |.... 6|00.. |
|00000270| 20 30 00 00 20 20 20 20 | 20 30 00 00 20 20 20 20 | 0.. | 0.. |
|00000280| 20 20 20 20 36 31 35 00 | 20 36 31 35 32 32 37 31 | 615.| 6152271|
|00000290| 36 35 35 00 20 32 31 32 | 36 35 00 20 30 00 00 00 |655. 212|65. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 41 72 63 68 69 65 20 | 00 33 37 37 37 37 37 37 |.Archie |.3777777|
|00000310| 37 35 30 36 00 33 32 34 | 36 32 35 31 34 37 31 35 |7506.324|62514715|
|00000320| 00 20 20 20 20 20 20 20 | 20 20 20 33 00 34 36 20 |. | 3.46 |
|00000330| 64 34 63 61 39 39 63 64 | 00 20 20 20 20 20 20 20 |d4ca99cd|. |
|00000340| 20 20 20 30 20 41 00 00 | 00 00 00 00 00 00 00 00 | 0 A..|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 2e 28 20 54 68 65 20 52 | 49 53 43 20 4f 53 20 46 |.( The R|ISC OS F|
|00000410| 6f 72 74 68 6d 61 63 73 | 20 73 70 72 65 61 64 73 |orthmacs| spreads|
|00000420| 68 65 65 74 20 68 61 73 | 20 62 65 65 6e 20 69 6e |heet has| been in|
|00000430| 73 74 61 6c 6c 65 64 29 | 20 63 72 20 63 72 0a 2e |stalled)| cr cr..|
|00000440| 28 20 54 68 69 73 20 69 | 73 20 61 6e 20 61 64 61 |( This i|s an ada|
|00000450| 70 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 22 43 72 |ption of| the "Cr|
|00000460| 61 69 67 20 4c 69 6e 64 | 6c 65 79 22 20 46 6f 72 |aig Lind|ley" For|
|00000470| 74 68 20 53 70 72 65 61 | 64 73 68 65 65 74 20 77 |th Sprea|dsheet w|
|00000480| 68 69 63 68 20 77 61 73 | 29 20 63 72 0a 2e 28 20 |hich was|) cr..( |
|00000490| 70 75 62 6c 69 73 68 65 | 64 20 69 6e 20 46 6f 72 |publishe|d in For|
|000004a0| 74 68 20 44 69 6d 65 6e | 73 69 6f 6e 73 2c 20 56 |th Dimen|sions, V|
|000004b0| 6f 6c 2e 20 37 20 4e 6f | 73 2e 20 31 20 61 6e 64 |ol. 7 No|s. 1 and|
|000004c0| 20 32 2e 20 54 68 61 74 | 20 61 72 74 69 63 6c 65 | 2. That| article|
|000004d0| 20 63 6f 6e 74 61 69 6e | 73 29 20 63 72 0a 2e 28 | contain|s) cr..(|
|000004e0| 20 61 20 64 69 73 63 75 | 73 73 69 6f 6e 20 6f 66 | a discu|ssion of|
|000004f0| 20 74 68 65 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 | the imp|lementat|
|00000500| 69 6f 6e 2e 20 20 54 6f | 20 67 65 74 20 73 74 61 |ion. To| get sta|
|00000510| 72 74 65 64 3a 29 20 63 | 72 0a 2e 28 20 20 20 66 |rted:) c|r..( f|
|00000520| 6c 6f 61 64 20 73 70 72 | 65 61 64 2f 72 69 73 63 |load spr|ead/risc|
|00000530| 6f 73 2e 66 74 68 29 20 | 63 72 0a 2e 28 20 20 20 |os.fth) |cr..( |
|00000540| 73 70 72 65 61 64 73 68 | 65 65 74 29 20 63 72 0a |spreadsh|eet) cr.|
|00000550| 2e 28 20 4d 6f 72 65 20 | 69 6e 66 6f 72 6d 61 74 |.( More |informat|
|00000560| 69 6f 6e 20 63 61 6e 20 | 62 65 20 66 6f 75 6e 64 |ion can |be found|
|00000570| 20 69 6e 20 73 70 72 65 | 61 64 2f 73 70 72 65 61 | in spre|ad/sprea|
|00000580| 64 5f 64 6f 63 2e 29 20 | 63 72 0a 0a 0a 00 00 00 |d_doc.) |cr......|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 21 46 6f 72 74 68 6d 61 | 63 73 2e 73 70 72 65 61 |!Forthma|cs.sprea|
|00000610| 64 2e 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |d.......|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 20 20 20 37 | 30 30 00 00 20 20 20 20 |.... 7|00.. |
|00000670| 20 30 00 00 20 20 20 20 | 20 30 00 00 20 20 20 20 | 0.. | 0.. |
|00000680| 20 20 20 20 20 20 30 00 | 20 36 31 34 33 36 32 31 | 0.| 6143621|
|00000690| 32 34 30 00 20 31 34 36 | 36 34 00 20 35 00 00 00 |240. 146|64. 5...|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 41 72 63 68 69 65 20 | 00 33 37 37 37 37 37 37 |.Archie |.3777777|
|00000710| 36 35 30 36 00 33 31 32 | 34 30 35 37 30 33 37 35 |6506.312|40570375|
|00000720| 00 20 20 20 20 20 20 20 | 20 20 20 30 00 34 36 20 |. | 0.46 |
|00000730| 63 61 38 32 66 30 66 64 | 00 00 00 00 00 00 00 00 |ca82f0fd|........|
|00000740| 00 00 00 00 00 41 00 00 | 00 00 00 00 00 00 00 00 |.....A..|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 21 46 6f 72 74 68 6d 61 | 63 73 2e 73 70 72 65 61 |!Forthma|cs.sprea|
|00000810| 64 2e 61 6c 67 65 62 72 | 61 00 00 00 00 00 00 00 |d.algebr|a.......|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 20 20 20 36 | 30 30 00 00 20 20 20 20 |.... 6|00.. |
|00000870| 20 30 00 00 20 20 20 20 | 20 30 00 00 20 20 20 20 | 0.. | 0.. |
|00000880| 20 20 20 35 33 34 35 00 | 20 36 30 34 33 34 37 32 | 5345.| 6043472|
|00000890| 30 34 31 00 20 31 36 37 | 32 30 00 20 30 00 00 00 |041. 167|20. 0...|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 41 72 63 68 69 65 20 | 00 33 37 37 37 37 37 37 |.Archie |.3777777|
|00000910| 37 35 30 36 00 31 34 36 | 31 37 35 34 33 35 30 35 |7506.146|17543505|
|00000920| 00 20 20 20 20 20 20 20 | 20 20 20 33 00 34 36 20 |. | 3.46 |
|00000930| 36 36 33 65 63 37 34 35 | 00 20 20 20 20 20 20 20 |663ec745|. |
|00000940| 20 20 20 30 20 41 00 00 | 00 00 00 00 00 00 00 00 | 0 A..|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 5c 20 61 6c 67 65 62 72 | 61 69 63 20 66 75 6e 63 |\ algebr|aic func|
|00000a10| 74 69 6f 6e 73 0a 0a 76 | 6f 63 61 62 75 6c 61 72 |tions..v|ocabular|
|00000a20| 79 20 61 6c 67 65 62 72 | 61 0a 0a 61 6c 67 65 62 |y algebr|a..algeb|
|00000a30| 72 61 20 61 6c 73 6f 20 | 64 65 66 69 6e 69 74 69 |ra also |definiti|
|00000a40| 6f 6e 73 09 5c 20 64 65 | 66 69 6e 65 64 20 69 6e |ons.\ de|fined in|
|00000a50| 20 70 6f 72 74 61 62 69 | 6c 69 74 79 20 6c 61 79 | portabi|lity lay|
|00000a60| 65 72 0a 0a 63 72 65 61 | 74 65 20 6f 70 5f 73 74 |er..crea|te op_st|
|00000a70| 61 63 6b 20 32 30 20 63 | 65 6c 6c 73 20 61 6c 6c |ack 20 c|ells all|
|00000a80| 6f 74 09 5c 20 6f 70 65 | 72 61 74 6f 72 20 73 74 |ot.\ ope|rator st|
|00000a90| 61 63 6b 20 66 6f 72 20 | 61 6c 67 65 62 72 61 69 |ack for |algebrai|
|00000aa0| 63 0a 09 09 09 09 5c 20 | 65 71 75 61 74 69 6f 6e |c.....\ |equation|
|00000ab0| 20 63 6f 6d 70 69 6c 61 | 74 69 6f 6e 0a 0a 5c 20 | compila|tion..\ |
|00000ac0| 63 6f 6c 5f 69 64 20 66 | 75 6e 63 74 69 6f 6e 20 |col_id f|unction |
|00000ad0| 61 73 73 69 67 6e 73 20 | 6e 20 74 6f 20 69 64 20 |assigns |n to id |
|00000ae0| 61 74 20 63 6f 6d 70 69 | 6c 65 20 74 69 6d 65 20 |at compi|le time |
|00000af0| 20 28 20 6e 20 2d 2d 29 | 0a 5c 20 65 78 70 65 63 | ( n --)|.\ expec|
|00000b00| 74 73 20 72 6f 77 20 23 | 20 6f 6e 20 74 6f 73 20 |ts row #| on tos |
|00000b10| 61 74 20 72 75 6e 20 74 | 69 6d 65 2e 0a 5c 20 73 |at run t|ime..\ s|
|00000b20| 75 62 73 65 71 75 65 6e | 74 20 75 73 61 67 65 20 |ubsequen|t usage |
|00000b30| 6f 66 20 69 64 20 66 65 | 74 63 68 65 73 20 64 6f |of id fe|tches do|
|00000b40| 75 62 6c 65 20 76 61 6c | 75 65 20 6f 66 20 63 65 |uble val|ue of ce|
|00000b50| 6c 6c 20 74 6f 20 73 74 | 61 63 6b 0a 0a 5c 20 33 |ll to st|ack..\ 3|
|00000b60| 32 2d 62 69 74 0a 3a 20 | 63 6f 6c 5f 69 64 09 09 |2-bit.: |col_id..|
|00000b70| 09 09 5c 20 63 6f 6c 75 | 6d 6e 5f 69 64 20 68 69 |..\ colu|mn_id hi|
|00000b80| 67 68 2d 6c 65 76 65 6c | 20 64 65 66 69 6e 69 6e |gh-level| definin|
|00000b90| 67 20 77 6f 72 64 2e 0a | 09 63 72 65 61 74 65 09 |g word..|.create.|
|00000ba0| 2c 09 09 09 5c 20 63 72 | 65 61 74 65 73 20 63 6f |,...\ cr|eates co|
|00000bb0| 6c 20 69 64 73 20 61 2d | 7a 0a 09 64 6f 65 73 3e |l ids a-|z..does>|
|00000bc0| 09 40 20 73 70 63 65 6c | 6c 73 20 63 65 6c 6c 2b |.@ spcel|ls cell+|
|00000bd0| 20 40 20 3b 09 5c 20 65 | 78 70 65 63 74 20 61 20 | @ ;.\ e|xpect a |
|00000be0| 23 20 6f 6e 20 74 68 65 | 20 74 6f 73 20 61 6e 64 |# on the| tos and|
|00000bf0| 0a 09 09 09 09 09 5c 20 | 70 75 73 68 65 73 20 74 |......\ |pushes t|
|00000c00| 68 65 20 63 65 6c 6c 20 | 76 61 6c 75 65 20 6f 6e |he cell |value on|
|00000c10| 74 6f 20 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |to . | |
|00000c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 5c 20 74 68 | | \ th|
|00000c40| 65 20 70 61 72 61 6d 65 | 74 65 72 20 73 74 61 63 |e parame|ter stac|
|00000c50| 6b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |k. | |
|00000c60| 20 20 20 20 20 20 0a 3a | 20 61 73 73 69 67 6e 5f | .:| assign_|
|00000c70| 69 64 0a 09 63 6f 6c 5f | 6d 61 78 20 30 09 09 09 |id..col_|max 0...|
|00000c80| 5c 20 6c 6f 6f 70 20 75 | 73 65 64 20 74 6f 20 61 |\ loop u|sed to a|
|00000c90| 73 73 69 67 6e 20 76 61 | 6c 75 65 73 20 74 6f 0a |ssign va|lues to.|
|00000ca0| 09 64 6f 20 20 69 20 63 | 6f 6c 5f 69 64 20 20 6c |.do i c|ol_id l|
|00000cb0| 6f 6f 70 20 3b 09 09 5c | 20 74 68 65 20 61 6c 70 |oop ;..\| the alp|
|00000cc0| 68 61 62 65 74 69 63 20 | 63 6f 6c 75 6d 6e 73 0a |habetic |columns.|
|00000cd0| 0a 61 73 73 69 67 6e 5f | 69 64 20 20 20 20 61 20 |.assign_|id a |
|00000ce0| 62 20 63 20 64 20 65 20 | 66 20 67 20 68 20 69 20 |b c d e |f g h i |
|00000cf0| 6a 20 6b 20 6c 20 6d 20 | 6e 20 6f 20 70 0a 20 20 |j k l m |n o p. |
|00000d00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 71 | | q|
|00000d10| 20 72 20 73 20 74 20 75 | 20 76 20 77 20 78 20 79 | r s t u| v w x y|
|00000d20| 20 7a 0a 0a 5c 20 0a 5c | 20 66 6f 72 20 65 78 61 | z..\ .\| for exa|
|00000d30| 6d 70 6c 65 3a 20 20 31 | 20 61 20 20 72 65 74 75 |mple: 1| a retu|
|00000d40| 72 6e 73 20 74 68 65 20 | 64 6f 75 62 6c 65 2d 69 |rns the |double-i|
|00000d50| 6e 74 20 76 61 6c 75 65 | 20 6f 66 20 63 65 6c 6c |nt value| of cell|
|00000d60| 20 20 31 20 61 0a 5c 20 | 0a 5c 20 63 6f 6c 75 6d | 1 a.\ |.\ colum|
|00000d70| 6e 20 69 64 73 20 41 2d | 5a 20 72 65 74 75 72 6e |n ids A-|Z return|
|00000d80| 20 76 61 6c 75 65 73 20 | 6f 66 20 30 2d 32 35 20 | values |of 0-25 |
|00000d90| 72 65 73 70 65 63 74 69 | 76 65 6c 79 0a 0a 3a 20 |respecti|vely..: |
|00000da0| 6f 70 70 40 09 09 28 20 | 2d 2d 20 61 64 64 72 20 |opp@..( |-- addr |
|00000db0| 29 09 5c 20 72 65 74 75 | 72 6e 20 6f 70 72 6e 64 |).\ retu|rn oprnd|
|00000dc0| 20 73 74 61 63 6b 20 70 | 6f 73 69 74 69 6f 6e 0a | stack p|osition.|
|00000dd0| 09 6f 70 5f 73 74 61 63 | 6b 20 64 75 70 20 40 20 |.op_stac|k dup @ |
|00000de0| 2b 20 3b 09 5c 20 31 73 | 74 20 6c 6f 63 61 74 69 |+ ;.\ 1s|t locati|
|00000df0| 6f 6e 20 69 73 20 73 74 | 61 63 6b 20 70 74 72 0a |on is st|ack ptr.|
|00000e00| 0a 3a 20 3e 6f 70 09 09 | 5c 20 28 20 63 66 61 20 |.: >op..|\ ( cfa |
|00000e10| 70 72 65 63 20 2d 2d 20 | 29 0a 09 32 20 63 65 6c |prec -- |)..2 cel|
|00000e20| 6c 73 20 6f 70 5f 73 74 | 61 63 6b 20 2b 21 0a 09 |ls op_st|ack +!..|
|00000e30| 6f 70 70 40 20 32 21 20 | 3b 09 09 5c 20 73 74 6f |opp@ 2! |;..\ sto|
|00000e40| 72 65 20 63 66 61 20 61 | 6e 64 20 70 72 65 63 65 |re cfa a|nd prece|
|00000e50| 64 65 6e 63 65 20 74 6f | 70 20 6f 66 20 6f 70 72 |dence to|p of opr|
|00000e60| 6e 64 20 73 74 61 63 6b | 0a 20 20 20 20 20 20 20 |nd stack|. |
|00000e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 3a 20 | | .: |
|00000e80| 6f 70 3e 0a 09 6f 70 70 | 40 20 32 40 09 28 20 63 |op>..opp|@ 2@.( c|
|00000e90| 66 61 20 70 72 65 63 20 | 29 0a 09 32 20 63 65 6c |fa prec |)..2 cel|
|00000ea0| 6c 73 20 6e 65 67 61 74 | 65 20 6f 70 5f 73 74 61 |ls negat|e op_sta|
|00000eb0| 63 6b 20 2b 21 09 5c 20 | 70 6f 70 20 63 66 61 20 |ck +!.\ |pop cfa |
|00000ec0| 61 6e 64 20 70 72 65 63 | 20 6f 66 66 20 6f 70 72 |and prec| off opr|
|00000ed0| 6e 64 0a 09 64 72 6f 70 | 20 63 6f 6d 70 69 6c 65 |nd..drop| compile|
|00000ee0| 2c 20 3b 09 09 09 5c 20 | 73 74 61 63 6b 20 61 6e |, ;...\ |stack an|
|00000ef0| 64 20 63 6f 6d 70 69 6c | 65 20 69 6e 74 6f 20 64 |d compil|e into d|
|00000f00| 69 63 74 2e 0a 0a 3a 20 | 70 72 65 63 3f 09 09 5c |ict...: |prec?..\|
|00000f10| 20 28 20 2d 2d 20 70 72 | 65 63 20 29 0a 09 6f 70 | ( -- pr|ec )..op|
|00000f20| 70 40 20 40 20 3b 09 09 | 5c 20 72 65 74 75 72 6e |p@ @ ;..|\ return|
|00000f30| 20 70 72 65 63 65 64 65 | 6e 63 65 20 66 72 6f 6d | precede|nce from|
|00000f40| 20 74 6f 70 20 6f 66 20 | 6f 70 72 6e 64 20 73 74 | top of |oprnd st|
|00000f50| 61 63 6b 0a 0a 3a 20 5d | 61 09 09 09 09 5c 20 65 |ack..: ]|a....\ e|
|00000f60| 6e 64 20 61 6c 67 65 62 | 72 61 69 63 20 63 6f 6d |nd algeb|raic com|
|00000f70| 70 69 6c 61 74 69 6f 6e | 0a 09 62 65 67 69 6e 09 |pilation|..begin.|
|00000f80| 70 72 65 63 3f 20 20 20 | 20 20 20 20 20 0a 09 77 |prec? | ..w|
|00000f90| 68 69 6c 65 09 6f 70 3e | 09 09 5c 20 70 6f 70 20 |hile.op>|..\ pop |
|00000fa0| 72 65 6d 61 69 6e 69 6e | 67 20 6f 70 72 6e 64 73 |remainin|g oprnds|
|00000fb0| 20 6f 66 66 20 73 74 6b | 0a 09 72 65 70 65 61 74 | off stk|..repeat|
|00000fc0| 09 09 09 5c 20 61 6e 64 | 20 63 6f 6d 70 69 6c 65 |...\ and| compile|
|00000fd0| 20 74 68 65 6e 20 73 65 | 6c 65 63 74 20 66 6f 72 | then se|lect for|
|00000fe0| 74 68 0a 09 66 6f 72 74 | 68 20 3b 20 69 6d 6d 65 |th..fort|h ; imme|
|00000ff0| 64 69 61 74 65 09 5c 20 | 76 6f 63 61 62 75 6c 61 |diate.\ |vocabula|
|00001000| 72 79 20 61 67 61 69 6e | 20 0a 0a 5c 20 63 72 65 |ry again| ..\ cre|
|00001010| 61 74 65 20 68 69 67 68 | 2d 6c 65 76 65 6c 20 64 |ate high|-level d|
|00001020| 65 66 69 6e 69 74 69 6f | 6e 20 74 68 61 74 20 70 |efinitio|n that p|
|00001030| 65 72 66 6f 72 6d 73 20 | 61 6c 67 65 62 72 61 69 |erforms |algebrai|
|00001040| 63 0a 5c 20 63 6f 6d 70 | 69 6c 61 74 69 6f 6e 2e |c.\ comp|ilation.|
|00001050| 20 20 73 65 65 20 74 65 | 78 74 20 66 6f 72 20 64 | see te|xt for d|
|00001060| 65 74 61 69 6c 73 20 6f | 66 20 6f 70 65 72 61 74 |etails o|f operat|
|00001070| 69 6f 6e 0a 0a 3a 20 69 | 6e 66 69 78 0a 09 27 20 |ion..: i|nfix..' |
|00001080| 63 72 65 61 74 65 09 09 | 09 5c 20 63 72 65 61 74 |create..|.\ creat|
|00001090| 65 20 6e 65 77 20 61 6c | 67 65 62 72 61 69 63 20 |e new al|gebraic |
|000010a0| 6f 70 65 72 61 74 6f 72 | 0a 09 09 73 77 61 70 20 |operator|...swap |
|000010b0| 2c 20 2c 20 69 6d 6d 65 | 64 69 61 74 65 09 5c 20 |, , imme|diate.\ |
|000010c0| 63 6f 6d 70 69 6c 65 20 | 63 66 61 20 6f 66 20 66 |compile |cfa of f|
|000010d0| 6f 72 74 68 20 6f 70 65 | 72 61 74 6f 72 0a 09 64 |orth ope|rator..d|
|000010e0| 6f 65 73 3e 20 20 20 32 | 40 09 09 09 5c 20 61 6e |oes> 2|@...\ an|
|000010f0| 64 20 61 73 73 69 67 6e | 65 64 20 70 72 65 63 65 |d assign|ed prece|
|00001100| 64 65 6e 63 65 0a 09 09 | 62 65 67 69 6e 20 64 75 |dence...|begin du|
|00001110| 70 20 70 72 65 63 3f 20 | 3e 20 6e 6f 74 09 5c 20 |p prec? |> not.\ |
|00001120| 61 74 20 63 6f 6d 70 69 | 6c 65 20 74 69 6d 65 20 |at compi|le time |
|00001130| 65 78 65 63 75 74 65 20 | 69 66 0a 09 09 09 09 09 |execute |if......|
|00001140| 5c 20 70 72 65 63 20 69 | 73 20 6c 6f 77 65 72 20 |\ prec i|s lower |
|00001150| 74 68 61 6e 20 6f 70 72 | 6e 64 20 6f 6e 0a 09 09 |than opr|nd on...|
|00001160| 77 68 69 6c 65 09 3e 72 | 20 3e 72 20 20 6f 70 3e |while.>r| >r op>|
|00001170| 20 20 72 3e 20 72 3e 0a | 09 09 72 65 70 65 61 74 | r> r>.|..repeat|
|00001180| 0a 09 09 3e 6f 70 20 3b | 09 09 09 5c 20 74 6f 70 |...>op ;|...\ top|
|00001190| 20 6f 66 20 6f 70 72 6e | 64 20 73 74 61 63 6b 0a | of oprn|d stack.|
|000011a0| 0a 37 20 69 6e 66 69 78 | 20 2a 20 2a 0a 37 20 69 |.7 infix| * *.7 i|
|000011b0| 6e 66 69 78 20 2f 20 2f | 0a 36 20 69 6e 66 69 78 |nfix / /|.6 infix|
|000011c0| 20 2b 20 2b 0a 36 20 69 | 6e 66 69 78 20 2d 20 2d | + +.6 i|nfix - -|
|000011d0| 0a 35 20 69 6e 66 69 78 | 20 6d 6f 64 20 6d 6f 64 |.5 infix| mod mod|
|000011e0| 0a 0a 3a 20 29 6d 69 73 | 73 69 6e 67 09 09 09 09 |..: )mis|sing....|
|000011f0| 5c 20 6d 69 73 73 69 6e | 67 20 29 20 6d 65 73 73 |\ missin|g ) mess|
|00001200| 61 67 65 0a 09 74 72 75 | 65 20 61 62 6f 72 74 22 |age..tru|e abort"|
|00001210| 20 6d 69 73 73 69 6e 67 | 20 29 22 20 3b 09 5c 20 | missing| )" ;.\ |
|00001220| 69 66 20 6d 69 73 73 69 | 6e 67 20 74 68 65 6e 20 |if missi|ng then |
|00001230| 61 62 6f 72 74 0a 0a 3a | 20 28 09 09 09 09 09 5c |abort..:| (.....\|
|00001240| 20 6c 65 66 74 20 70 61 | 72 65 6e 0a 09 5b 27 5d | left pa|ren..[']|
|00001250| 20 29 6d 69 73 73 69 6e | 67 20 20 31 20 3e 6f 70 | )missin|g 1 >op|
|00001260| 20 3b 09 09 5c 20 70 72 | 65 63 3d 31 20 63 66 61 | ;..\ pr|ec=1 cfa|
|00001270| 3d 20 29 6d 69 73 73 69 | 6e 67 20 6d 65 73 73 61 |= )missi|ng messa|
|00001280| 67 65 0a 09 69 6d 6d 65 | 64 69 61 74 65 09 09 09 |ge..imme|diate...|
|00001290| 5c 20 70 75 73 68 20 6f | 6e 20 6f 70 72 6e 64 20 |\ push o|n oprnd |
|000012a0| 73 74 61 63 6b 0a 0a 5c | 20 46 6f 72 74 68 20 6e |stack..\| Forth n|
|000012b0| 65 65 64 73 20 74 6f 20 | 62 65 20 62 65 66 6f 72 |eeds to |be befor|
|000012c0| 65 20 61 6c 67 65 62 72 | 61 20 69 6e 20 74 68 65 |e algebr|a in the|
|000012d0| 20 73 65 61 72 63 68 20 | 6f 72 64 65 72 0a 0a 6f | search |order..o|
|000012e0| 6e 6c 79 20 66 6f 72 74 | 68 20 73 70 72 65 61 64 |nly fort|h spread|
|000012f0| 20 61 6c 73 6f 20 61 6c | 67 65 62 72 61 20 61 6c | also al|gebra al|
|00001300| 73 6f 20 20 66 6f 72 74 | 68 20 61 6c 73 6f 0a 61 |so fort|h also.a|
|00001310| 6c 67 65 62 72 61 20 64 | 65 66 69 6e 69 74 69 6f |lgebra d|efinitio|
|00001320| 6e 73 0a 0a 3a 20 29 0a | 09 5b 20 66 6f 72 74 68 |ns..: ).|.[ forth|
|00001330| 20 5d 09 09 09 5c 20 72 | 69 67 68 74 20 70 61 72 | ]...\ r|ight par|
|00001340| 65 6e 0a 09 62 65 67 69 | 6e 09 31 20 70 72 65 63 |en..begi|n.1 prec|
|00001350| 3f 20 3c 09 09 5c 20 63 | 61 75 73 65 73 20 61 6c |? <..\ c|auses al|
|00001360| 6c 20 69 74 65 6d 73 20 | 6f 6e 20 6f 70 72 6e 64 |l items |on oprnd|
|00001370| 0a 09 77 68 69 6c 65 09 | 6f 70 3e 09 09 09 5c 20 |..while.|op>...\ |
|00001380| 73 74 61 63 6b 20 74 6f | 20 62 65 20 63 6f 6d 70 |stack to| be comp|
|00001390| 69 6c 65 64 20 75 6e 74 | 69 6c 0a 09 72 65 70 65 |iled unt|il..repe|
|000013a0| 61 74 0a 09 31 20 70 72 | 65 63 3f 20 3d 09 09 09 |at..1 pr|ec? =...|
|000013b0| 5c 20 6c 65 66 74 20 70 | 61 72 65 6e 20 66 6f 75 |\ left p|aren fou|
|000013c0| 6e 64 0a 09 69 66 09 32 | 20 63 65 6c 6c 73 20 6e |nd..if.2| cells n|
|000013d0| 65 67 61 74 65 20 6f 70 | 5f 73 74 61 63 6b 20 2b |egate op|_stack +|
|000013e0| 21 09 5c 20 6c 65 66 74 | 20 70 61 72 65 6e 20 73 |!.\ left| paren s|
|000013f0| 68 6f 75 6c 64 20 68 61 | 76 65 20 70 72 65 63 2e |hould ha|ve prec.|
|00001400| 0a 09 65 6c 73 65 09 74 | 72 75 65 20 61 62 6f 72 |..else.t|rue abor|
|00001410| 74 22 20 6d 69 73 73 69 | 6e 67 20 28 22 09 09 5c |t" missi|ng ("..\|
|00001420| 20 6f 66 20 31 20 65 6c | 73 65 20 65 72 72 6f 72 | of 1 el|se error|
|00001430| 20 6d 73 67 20 6f 75 74 | 70 75 74 0a 09 74 68 65 | msg out|put..the|
|00001440| 6e 20 3b 20 20 69 6d 6d | 65 64 69 61 74 65 0a 0a |n ; imm|ediate..|
|00001450| 73 70 72 65 61 64 20 64 | 65 66 69 6e 69 74 69 6f |spread d|efinitio|
|00001460| 6e 73 0a 0a 3a 20 61 5b | 09 09 09 09 09 5c 20 73 |ns..: a[|.....\ s|
|00001470| 74 61 72 74 20 61 6c 67 | 65 62 72 61 69 63 20 63 |tart alg|ebraic c|
|00001480| 6f 6d 70 69 6c 61 74 69 | 6f 6e 0a 09 6f 70 5f 73 |ompilati|on..op_s|
|00001490| 74 61 63 6b 20 6f 66 66 | 09 09 09 5c 20 72 65 73 |tack off|...\ res|
|000014a0| 65 74 20 6f 70 72 6e 64 | 20 73 74 61 63 6b 20 61 |et oprnd| stack a|
|000014b0| 6e 64 0a 09 61 6c 67 65 | 62 72 61 20 3b 20 69 6d |nd..alge|bra ; im|
|000014c0| 6d 65 64 69 61 74 65 09 | 09 5c 20 73 65 6c 65 63 |mediate.|.\ selec|
|000014d0| 74 20 61 6c 67 65 62 72 | 61 20 76 6f 63 61 62 75 |t algebr|a vocabu|
|000014e0| 6c 61 72 79 0a 00 00 00 | 00 00 00 00 00 00 00 00 |lary....|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 21 46 6f 72 74 68 6d 61 | 63 73 2e 73 70 72 65 61 |!Forthma|cs.sprea|
|00001610| 64 2e 63 6f 6d 6d 61 6e | 64 73 00 00 00 00 00 00 |d.comman|ds......|
|00001620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 20 20 20 36 | 30 30 00 00 20 20 20 20 |.... 6|00.. |
|00001670| 20 30 00 00 20 20 20 20 | 20 30 00 00 20 20 20 20 | 0.. | 0.. |
|00001680| 20 20 31 31 31 33 36 00 | 20 36 31 35 36 31 32 35 | 11136.| 6156125|
|00001690| 34 30 31 00 20 31 37 33 | 33 37 00 20 30 00 00 00 |401. 173|37. 0...|
|000016a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 41 72 63 68 69 65 20 | 00 33 37 37 37 37 37 37 |.Archie |.3777777|
|00001710| 37 35 30 36 00 33 33 32 | 35 37 30 33 33 33 36 32 |7506.332|57033362|
|00001720| 00 20 20 20 20 20 20 20 | 20 20 20 33 00 34 36 20 |. | 3.46 |
|00001730| 64 61 62 63 33 36 66 32 | 00 20 20 20 20 20 20 20 |dabc36f2|. |
|00001740| 20 20 20 30 20 41 00 00 | 00 00 00 00 00 00 00 00 | 0 A..|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 5c 20 68 69 67 68 2d 6c | 65 76 65 6c 20 63 6f 6d |\ high-l|evel com|
|00001810| 6d 61 6e 64 73 0a 0a 3a | 20 71 75 69 74 5f 63 61 |mands..:| quit_ca|
|00001820| 6c 63 09 09 09 5c 20 65 | 78 69 74 20 73 70 72 65 |lc...\ e|xit spre|
|00001830| 61 64 73 68 65 65 74 0a | 09 79 2f 6e 09 09 09 5c |adsheet.|.y/n...\|
|00001840| 20 61 73 6b 20 61 67 61 | 69 6e 20 74 6f 20 62 65 | ask aga|in to be|
|00001850| 20 73 75 72 65 0a 09 69 | 66 09 70 6f 73 32 20 2e | sure..i|f.pos2 .|
|00001860| 22 20 62 79 65 22 20 70 | 72 65 76 69 6f 75 73 20 |" bye" p|revious |
|00001870| 70 72 65 76 69 6f 75 73 | 0a 09 09 71 75 69 74 2d |previous|...quit-|
|00001880| 73 70 72 65 61 64 0a 09 | 74 68 65 6e 20 20 3b 0a |spread..|then ;.|
|00001890| 0a 76 61 72 69 61 62 6c | 65 20 6d 61 72 6b 65 72 |.variabl|e marker|
|000018a0| 0a 3a 20 66 6f 72 67 65 | 74 5f 74 6f 5f 6d 61 72 |.: forge|t_to_mar|
|000018b0| 6b 09 09 5c 20 66 6f 72 | 67 65 74 20 66 6f 72 6d |k..\ for|get form|
|000018c0| 75 6c 61 73 0a 09 6d 61 | 72 6b 65 72 20 40 20 68 |ulas..ma|rker @ h|
|000018d0| 65 72 65 20 2d 20 61 6c | 6c 6f 74 20 3b 0a 0a 3a |ere - al|lot ;..:|
|000018e0| 20 6e 65 77 09 09 09 09 | 5c 20 63 6c 65 61 72 20 | new....|\ clear |
|000018f0| 65 78 69 73 74 69 6e 67 | 20 73 70 72 65 61 64 73 |existing| spreads|
|00001900| 68 65 65 74 0a 09 79 2f | 6e 09 09 09 5c 20 61 73 |heet..y/|n...\ as|
|00001910| 6b 20 61 67 61 69 6e 20 | 69 66 20 79 65 73 20 63 |k again |if yes c|
|00001920| 6c 65 61 72 20 69 74 0a | 09 69 66 09 30 20 30 20 |lear it.|.if.0 0 |
|00001930| 73 70 63 65 6c 6c 73 20 | 20 20 20 20 20 20 20 20 |spcells | |
|00001940| 0a 09 09 72 6f 77 5f 6d | 61 78 20 63 6f 6c 5f 6d |...row_m|ax col_m|
|00001950| 61 78 20 2a 20 32 2a 20 | 63 65 6c 6c 73 20 65 72 |ax * 2* |cells er|
|00001960| 61 73 65 09 5c 20 65 72 | 61 73 65 20 63 65 6c 6c |ase.\ er|ase cell|
|00001970| 73 20 61 72 72 61 79 0a | 09 09 30 20 72 6f 77 5f |s array.|..0 row_|
|00001980| 6e 61 6d 65 73 09 5c 20 | 65 72 61 73 65 20 72 6f |names.\ |erase ro|
|00001990| 77 5f 6e 61 6d 65 20 61 | 72 72 61 79 0a 09 09 72 |w_name a|rray...r|
|000019a0| 6f 77 5f 6d 61 78 20 72 | 6f 77 5f 6e 61 6d 65 5f |ow_max r|ow_name_|
|000019b0| 6c 65 6e 20 2a 20 65 72 | 61 73 65 20 20 0a 09 09 |len * er|ase ...|
|000019c0| 30 20 63 6f 6c 5f 6e 61 | 6d 65 73 09 5c 20 65 72 |0 col_na|mes.\ er|
|000019d0| 61 73 65 20 63 6f 6c 5f | 6e 61 6d 65 20 61 72 72 |ase col_|name arr|
|000019e0| 61 79 0a 09 09 63 6f 6c | 5f 6d 61 78 20 63 6f 6c |ay...col|_max col|
|000019f0| 5f 6e 61 6d 65 5f 6c 65 | 6e 20 2a 20 65 72 61 73 |_name_le|n * eras|
|00001a00| 65 20 20 0a 09 09 66 6f | 72 67 65 74 5f 74 6f 5f |e ...fo|rget_to_|
|00001a10| 6d 61 72 6b 09 5c 20 65 | 72 61 73 65 20 61 6c 6c |mark.\ e|rase all|
|00001a20| 20 66 6f 72 6d 75 6c 61 | 73 0a 09 09 72 6f 77 5f | formula|s...row_|
|00001a30| 64 69 73 70 20 6f 66 66 | 0a 09 09 63 6f 6c 5f 64 |disp off|...col_d|
|00001a40| 69 73 70 20 6f 66 66 09 | 5c 20 73 65 74 20 6d 61 |isp off.|\ set ma|
|00001a50| 72 6b 65 72 20 74 6f 20 | 6f 72 69 67 69 6e 0a 09 |rker to |origin..|
|00001a60| 09 70 22 20 6e 6f 6e 61 | 6d 65 22 20 61 70 70 6c |.p" nona|me" appl|
|00001a70| 69 63 61 74 69 6f 6e 2d | 6e 61 6d 65 20 22 63 6f |ication-|name "co|
|00001a80| 70 79 0a 09 09 64 69 73 | 5f 73 63 72 65 65 6e 09 |py...dis|_screen.|
|00001a90| 5c 20 64 69 73 70 6c 61 | 79 20 63 6c 65 61 72 65 |\ displa|y cleare|
|00001aa0| 64 20 73 63 72 65 65 6e | 0a 09 74 68 65 6e 20 20 |d screen|..then |
|00001ab0| 3b 0a 0a 3a 20 6d 6f 64 | 65 09 09 09 09 5c 20 73 |;..: mod|e....\ s|
|00001ac0| 65 74 20 61 75 74 6f 2d | 63 61 6c 63 75 6c 61 74 |et auto-|calculat|
|00001ad0| 69 6f 6e 20 6d 6f 64 65 | 0a 09 70 6f 73 31 20 2e |ion mode|..pos1 .|
|00001ae0| 22 20 73 65 74 20 61 75 | 74 6f 2d 63 61 6c 63 75 |" set au|to-calcu|
|00001af0| 6c 61 74 69 6f 6e 20 6d | 6f 64 65 22 0a 09 70 6f |lation m|ode"..po|
|00001b00| 73 32 20 2e 22 20 6e 6f | 72 6d 61 6c 3d 30 20 6f |s2 ." no|rmal=0 o|
|00001b10| 72 20 61 75 74 6f 3d 31 | 3a 20 22 0a 09 73 6b 65 |r auto=1|: "..ske|
|00001b20| 79 20 5b 63 68 61 72 5d | 20 31 20 3d 20 6d 6f 64 |y [char]| 1 = mod|
|00001b30| 65 5f 66 6c 61 67 20 21 | 20 3b 09 5c 20 73 65 74 |e_flag !| ;.\ set|
|00001b40| 20 6d 6f 64 65 5f 66 6c | 61 67 20 61 63 63 6f 72 | mode_fl|ag accor|
|00001b50| 64 69 6e 67 6c 79 0a 0a | 3a 20 70 65 72 66 6f 72 |dingly..|: perfor|
|00001b60| 6d 5f 63 61 6c 63 09 09 | 09 09 5c 20 66 6f 72 63 |m_calc..|..\ forc|
|00001b70| 65 20 63 61 6c 63 75 6c | 61 74 69 6f 6e 73 0a 09 |e calcul|ations..|
|00001b80| 63 61 6c 63 5f 63 65 6c | 6c 73 20 20 64 69 73 5f |calc_cel|ls dis_|
|00001b90| 64 61 74 61 20 3b 0a 0a | 3a 20 66 6f 72 6d 61 74 |data ;..|: format|
|00001ba0| 09 09 09 09 5c 20 73 65 | 6c 65 63 74 20 61 20 66 |....\ se|lect a f|
|00001bb0| 6f 72 6d 61 74 0a 09 70 | 6f 73 31 20 2e 22 20 73 |ormat..p|os1 ." s|
|00001bc0| 65 6c 65 63 74 20 69 6e | 70 75 74 20 6e 75 6d 62 |elect in|put numb|
|00001bd0| 65 72 20 66 6f 72 6d 61 | 74 22 0a 09 70 6f 73 32 |er forma|t"..pos2|
|00001be0| 20 2e 22 20 6e 6f 72 6d | 61 6c 3d 30 20 6f 72 20 | ." norm|al=0 or |
|00001bf0| 64 6f 6c 6c 61 72 73 2f | 63 65 6e 74 73 3d 31 3a |dollars/|cents=1:|
|00001c00| 20 22 0a 09 73 6b 65 79 | 20 5b 63 68 61 72 5d 20 | "..skey| [char] |
|00001c10| 31 20 3d 20 66 6f 72 6d | 61 74 5f 66 6c 61 67 20 |1 = form|at_flag |
|00001c20| 21 0a 09 64 69 73 5f 64 | 61 74 61 20 3b 0a 3a 20 |!..dis_d|ata ;.: |
|00001c30| 69 6e 70 75 74 5f 61 70 | 70 6c 69 63 61 74 69 6f |input_ap|plicatio|
|00001c40| 6e 0a 09 70 6f 73 31 20 | 2e 22 20 45 6e 74 65 72 |n..pos1 |." Enter|
|00001c50| 20 6e 61 6d 65 20 6f 66 | 20 74 68 69 73 20 73 70 | name of| this sp|
|00001c60| 72 65 61 64 73 68 65 65 | 74 22 0a 09 70 6f 73 32 |readshee|t"..pos2|
|00001c70| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2d 6e 61 6d | applica|tion-nam|
|00001c80| 65 20 63 68 61 72 2b 20 | 31 30 20 65 78 70 65 63 |e char+ |10 expec|
|00001c90| 74 20 20 73 70 61 6e 20 | 40 20 61 70 70 6c 69 63 |t span |@ applic|
|00001ca0| 61 74 69 6f 6e 2d 6e 61 | 6d 65 20 63 21 0a 09 61 |ation-na|me c!..a|
|00001cb0| 70 70 6c 69 63 61 74 69 | 6f 6e 2d 6e 61 6d 65 20 |pplicati|on-name |
|00001cc0| 63 6f 75 6e 74 20 6c 6f | 77 65 72 0a 09 64 69 73 |count lo|wer..dis|
|00001cd0| 5f 73 63 72 65 65 6e 20 | 3b 0a 0a 0a 3a 20 61 67 |_screen |;...: ag|
|00001ce0| 61 69 6e 5f 72 65 70 6c | 09 09 09 09 5c 20 72 65 |ain_repl|....\ re|
|00001cf0| 70 6c 69 63 61 74 65 20 | 63 6f 6c 75 6d 6e 20 64 |plicate |column d|
|00001d00| 61 74 61 0a 09 63 65 6c | 6c 5f 70 74 72 20 63 65 |ata..cel|l_ptr ce|
|00001d10| 6c 6c 2b 20 40 09 09 5c | 20 62 72 69 6e 67 20 63 |ll+ @..\| bring c|
|00001d20| 65 6c 6c 20 64 61 74 61 | 20 74 6f 20 74 6f 73 0a |ell data| to tos.|
|00001d30| 09 70 6f 73 31 20 2e 22 | 20 20 63 65 6c 6c 2b 63 |.pos1 ."| cell+c|
|00001d40| 6f 6c 75 6d 6e 20 72 65 | 70 6c 69 63 61 74 65 20 |olumn re|plicate |
|00001d50| 63 65 6c 6c 20 64 61 74 | 61 22 0a 09 70 6f 73 32 |cell dat|a"..pos2|
|00001d60| 20 2e 22 20 20 63 65 6c | 6c 2b 6e 75 6d 62 65 72 | ." cel|l+number|
|00001d70| 20 6f 66 20 63 6f 6c 75 | 6d 6e 73 3a 20 22 0a 09 | of colu|mns: "..|
|00001d80| 23 69 6e 20 3f 64 75 70 | 20 63 65 6c 6c 2b 09 09 |#in ?dup| cell+..|
|00001d90| 09 5c 20 67 65 74 20 23 | 20 6f 66 20 63 6f 6c 75 |.\ get #| of colu|
|00001da0| 6d 6e 73 0a 09 69 66 09 | 30 20 63 65 6c 6c 2b 09 |mns..if.|0 cell+.|
|00001db0| 09 09 5c 20 69 66 20 61 | 6e 73 77 65 72 20 3c 3e |..\ if a|nswer <>|
|00001dc0| 20 30 0a 09 09 64 6f 20 | 72 69 67 68 74 5f 61 72 | 0...do |right_ar|
|00001dd0| 72 6f 77 09 09 5c 20 6d | 6f 76 65 20 72 69 67 68 |row..\ m|ove righ|
|00001de0| 74 0a 09 09 20 20 20 64 | 75 70 20 63 65 6c 6c 5f |t... d|up cell_|
|00001df0| 70 74 72 20 63 65 6c 6c | 2b 20 21 09 5c 20 61 6e |ptr cell|+ !.\ an|
|00001e00| 64 20 73 74 6f 72 65 20 | 64 61 74 61 0a 09 09 6c |d store |data...l|
|00001e10| 6f 6f 70 0a 09 09 64 72 | 6f 70 20 64 69 73 5f 64 |oop...dr|op dis_d|
|00001e20| 61 74 61 09 09 5c 20 64 | 69 73 70 6c 61 79 20 74 |ata..\ d|isplay t|
|00001e30| 68 65 20 6e 65 77 20 64 | 61 74 61 0a 09 74 68 65 |he new d|ata..the|
|00001e40| 6e 20 3b 09 09 09 09 5c | 20 65 6c 73 65 20 69 67 |n ;....\| else ig|
|00001e50| 6e 6f 72 65 20 69 66 20 | 63 6f 6c 3d 30 0a 0a 3a |nore if |col=0..:|
|00001e60| 20 63 75 72 5f 63 6f 6c | 5f 6d 61 78 09 09 28 20 | cur_col|_max..( |
|00001e70| 2d 2d 20 6e 20 29 0a 09 | 63 6f 6c 5f 6d 61 78 20 |-- n )..|col_max |
|00001e80| 63 6f 6c 73 2f 70 61 67 | 65 20 2d 20 20 3b 0a 3a |cols/pag|e - ;.:|
|00001e90| 20 73 65 74 5f 63 6f 6c | 09 09 28 20 63 6f 6c 23 | set_col|..( col#|
|00001ea0| 20 2d 2d 20 29 0a 09 64 | 75 70 20 63 75 72 5f 63 | -- )..d|up cur_c|
|00001eb0| 6f 6c 5f 6d 61 78 20 3e | 20 20 28 20 63 6f 6c 23 |ol_max >| ( col#|
|00001ec0| 20 29 0a 09 69 66 09 63 | 75 72 5f 63 6f 6c 5f 6d | )..if.c|ur_col_m|
|00001ed0| 61 78 20 74 75 63 6b 20 | 2d 20 20 28 20 63 75 72 |ax tuck |- ( cur|
|00001ee0| 5f 63 6f 6c 20 63 6f 6c | 5f 64 69 73 70 20 29 0a |_col col|_disp ).|
|00001ef0| 09 65 6c 73 65 09 30 0a | 09 74 68 65 6e 0a 09 63 |.else.0.|.then..c|
|00001f00| 6f 6c 5f 64 69 73 70 20 | 21 20 20 20 63 75 72 5f |ol_disp |! cur_|
|00001f10| 63 6f 6c 20 21 20 3b 0a | 3a 20 63 75 72 5f 72 6f |col ! ;.|: cur_ro|
|00001f20| 77 5f 6d 61 78 09 28 20 | 2d 2d 20 6e 20 29 0a 09 |w_max.( |-- n )..|
|00001f30| 72 6f 77 5f 6d 61 78 20 | 72 6f 77 73 2f 70 61 67 |row_max |rows/pag|
|00001f40| 65 20 2d 20 20 3b 0a 3a | 20 73 65 74 5f 72 6f 77 |e - ;.:| set_row|
|00001f50| 09 28 20 72 6f 77 23 20 | 2d 2d 20 29 0a 09 64 75 |.( row# |-- )..du|
|00001f60| 70 20 63 75 72 5f 72 6f | 77 5f 6d 61 78 20 3e 20 |p cur_ro|w_max > |
|00001f70| 20 28 20 63 6f 6c 23 20 | 29 0a 09 69 66 09 63 75 | ( col# |)..if.cu|
|00001f80| 72 5f 72 6f 77 5f 6d 61 | 78 20 74 75 63 6b 20 2d |r_row_ma|x tuck -|
|00001f90| 20 20 28 20 63 75 72 5f | 63 6f 6c 20 63 6f 6c 5f | ( cur_|col col_|
|00001fa0| 64 69 73 70 20 29 0a 09 | 65 6c 73 65 09 30 0a 09 |disp )..|else.0..|
|00001fb0| 74 68 65 6e 0a 09 72 6f | 77 5f 64 69 73 70 20 21 |then..ro|w_disp !|
|00001fc0| 20 20 20 63 75 72 5f 72 | 6f 77 20 21 20 3b 0a 76 | cur_r|ow ! ;.v|
|00001fd0| 61 72 69 61 62 6c 65 20 | 6e 65 77 5f 72 6f 77 0a |ariable |new_row.|
|00001fe0| 76 61 72 69 61 62 6c 65 | 20 6e 65 77 5f 63 6f 6c |variable| new_col|
|00001ff0| 0a 0a 3a 20 64 6f 5f 67 | 6f 5f 74 6f 20 20 28 20 |..: do_g|o_to ( |
|00002000| 72 6f 77 20 63 6f 6c 75 | 6d 6e 20 2d 2d 20 29 0a |row colu|mn -- ).|
|00002010| 09 30 20 6d 61 78 20 20 | 63 6f 6c 5f 6d 61 78 20 |.0 max |col_max |
|00002020| 31 2d 20 6d 69 6e 20 20 | 6e 65 77 5f 63 6f 6c 20 |1- min |new_col |
|00002030| 21 0a 09 30 20 6d 61 78 | 20 20 72 6f 77 5f 6d 61 |!..0 max| row_ma|
|00002040| 78 20 31 2d 20 6d 69 6e | 20 20 6e 65 77 5f 72 6f |x 1- min| new_ro|
|00002050| 77 20 21 0a 09 6e 65 77 | 5f 72 6f 77 20 40 20 20 |w !..new|_row @ |
|00002060| 72 6f 77 20 20 20 20 20 | 64 75 70 20 72 6f 77 73 |row |dup rows|
|00002070| 2f 70 61 67 65 20 2b 20 | 20 77 69 74 68 69 6e 0a |/page + | within.|
|00002080| 09 6e 65 77 5f 63 6f 6c | 20 40 20 20 63 6f 6c 75 |.new_col| @ colu|
|00002090| 6d 6e 20 20 64 75 70 20 | 63 6f 6c 73 2f 70 61 67 |mn dup |cols/pag|
|000020a0| 65 20 2b 20 20 77 69 74 | 68 69 6e 20 61 6e 64 0a |e + wit|hin and.|
|000020b0| 09 69 66 09 09 5c 20 54 | 61 72 67 65 74 20 69 73 |.if..\ T|arget is|
|000020c0| 20 6f 6e 20 73 63 72 65 | 65 6e 3b 20 6a 75 73 74 | on scre|en; just|
|000020d0| 20 6d 6f 76 65 20 6d 61 | 72 6b 65 72 0a 09 09 65 | move ma|rker...e|
|000020e0| 72 61 73 65 5f 63 65 6c | 6c 5f 6d 61 72 6b 65 72 |rase_cel|l_marker|
|000020f0| 0a 09 09 6e 65 77 5f 72 | 6f 77 20 40 20 20 72 6f |...new_r|ow @ ro|
|00002100| 77 20 20 20 20 2d 20 20 | 72 6f 77 5f 64 69 73 70 |w - |row_disp|
|00002110| 20 21 0a 09 09 6e 65 77 | 5f 63 6f 6c 20 40 20 20 | !...new|_col @ |
|00002120| 63 6f 6c 75 6d 6e 20 2d | 20 20 63 6f 6c 5f 64 69 |column -| col_di|
|00002130| 73 70 20 21 0a 09 09 70 | 6c 61 63 65 5f 63 65 6c |sp !...p|lace_cel|
|00002140| 6c 5f 6d 61 72 6b 65 72 | 0a 09 09 65 78 69 74 0a |l_marker|...exit.|
|00002150| 09 74 68 65 6e 0a 09 6e | 65 77 5f 72 6f 77 20 40 |.then..n|ew_row @|
|00002160| 20 72 6f 77 20 20 64 75 | 70 20 72 6f 77 73 2f 70 | row du|p rows/p|
|00002170| 61 67 65 20 2b 20 20 77 | 69 74 68 69 6e 0a 09 69 |age + w|ithin..i|
|00002180| 66 09 09 5c 20 52 6f 77 | 20 69 73 20 6f 6e 20 73 |f..\ Row| is on s|
|00002190| 63 72 65 65 6e 3b 20 72 | 65 64 69 73 70 6c 61 79 |creen; r|edisplay|
|000021a0| 20 63 6f 6c 75 6d 6e 73 | 0a 09 09 65 72 61 73 65 | columns|...erase|
|000021b0| 5f 63 65 6c 6c 5f 6d 61 | 72 6b 65 72 0a 09 09 6e |_cell_ma|rker...n|
|000021c0| 65 77 5f 72 6f 77 20 40 | 20 20 72 6f 77 20 20 20 |ew_row @| row |
|000021d0| 20 2d 20 20 72 6f 77 5f | 64 69 73 70 20 21 0a 09 | - row_|disp !..|
|000021e0| 09 6e 65 77 5f 63 6f 6c | 20 40 20 20 73 65 74 5f |.new_col| @ set_|
|000021f0| 63 6f 6c 0a 09 09 64 69 | 73 5f 63 6f 6c 5f 63 68 |col...di|s_col_ch|
|00002200| 61 6e 67 65 0a 09 09 70 | 6c 61 63 65 5f 63 65 6c |ange...p|lace_cel|
|00002210| 6c 5f 6d 61 72 6b 65 72 | 0a 09 09 65 78 69 74 0a |l_marker|...exit.|
|00002220| 09 74 68 65 6e 0a 09 6e | 65 77 5f 63 6f 6c 20 40 |.then..n|ew_col @|
|00002230| 20 20 63 6f 6c 75 6d 6e | 20 20 64 75 70 20 63 6f | column| dup co|
|00002240| 6c 73 2f 70 61 67 65 20 | 2b 20 20 77 69 74 68 69 |ls/page |+ withi|
|00002250| 6e 0a 09 69 66 09 09 5c | 20 43 6f 6c 75 6d 6e 20 |n..if..\| Column |
|00002260| 69 73 20 6f 6e 20 73 63 | 72 65 65 6e 3b 20 72 65 |is on sc|reen; re|
|00002270| 64 69 73 70 6c 61 79 20 | 72 6f 77 73 0a 09 09 65 |display |rows...e|
|00002280| 72 61 73 65 5f 63 65 6c | 6c 5f 6d 61 72 6b 65 72 |rase_cel|l_marker|
|00002290| 0a 09 09 6e 65 77 5f 72 | 6f 77 20 40 20 20 73 65 |...new_r|ow @ se|
|000022a0| 74 5f 72 6f 77 0a 09 09 | 6e 65 77 5f 63 6f 6c 20 |t_row...|new_col |
|000022b0| 40 20 20 63 6f 6c 75 6d | 6e 20 2d 20 20 63 6f 6c |@ colum|n - col|
|000022c0| 5f 64 69 73 70 20 21 0a | 09 09 64 69 73 5f 72 6f |_disp !.|..dis_ro|
|000022d0| 77 5f 63 68 61 6e 67 65 | 0a 09 09 70 6c 61 63 65 |w_change|...place|
|000022e0| 5f 63 65 6c 6c 5f 6d 61 | 72 6b 65 72 0a 09 09 65 |_cell_ma|rker...e|
|000022f0| 78 69 74 0a 09 74 68 65 | 6e 0a 09 5c 20 54 61 72 |xit..the|n..\ Tar|
|00002300| 67 65 74 20 69 73 20 6f | 66 66 20 73 63 72 65 65 |get is o|ff scree|
|00002310| 6e 3b 20 72 65 66 72 61 | 6d 65 20 74 68 65 20 77 |n; refra|me the w|
|00002320| 68 6f 6c 65 20 73 68 6f | 77 0a 09 65 72 61 73 65 |hole sho|w..erase|
|00002330| 5f 63 65 6c 6c 5f 6d 61 | 72 6b 65 72 0a 09 6e 65 |_cell_ma|rker..ne|
|00002340| 77 5f 72 6f 77 20 40 20 | 73 65 74 5f 72 6f 77 0a |w_row @ |set_row.|
|00002350| 09 6e 65 77 5f 63 6f 6c | 20 40 20 73 65 74 5f 63 |.new_col| @ set_c|
|00002360| 6f 6c 0a 09 64 69 73 5f | 72 6f 77 5f 6e 61 6d 65 |ol..dis_|row_name|
|00002370| 73 0a 09 64 69 73 5f 72 | 6f 77 5f 6c 61 62 65 6c |s..dis_r|ow_label|
|00002380| 73 0a 09 64 69 73 5f 63 | 6f 6c 5f 6e 61 6d 65 73 |s..dis_c|ol_names|
|00002390| 0a 09 64 69 73 5f 63 6f | 6c 5f 6c 61 62 65 6c 73 |..dis_co|l_labels|
|000023a0| 0a 09 64 69 73 5f 64 61 | 74 61 0a 09 70 6c 61 63 |..dis_da|ta..plac|
|000023b0| 65 5f 63 65 6c 6c 5f 6d | 61 72 6b 65 72 20 3b 0a |e_cell_m|arker ;.|
|000023c0| 3a 20 67 6f 5f 74 6f 09 | 09 09 09 09 5c 20 67 6f |: go_to.|....\ go|
|000023d0| 20 74 6f 20 73 70 65 63 | 69 66 69 65 64 20 72 6f | to spec|ified ro|
|000023e0| 77 2f 63 6f 6c 0a 09 70 | 6f 73 31 20 2e 22 20 72 |w/col..p|os1 ." r|
|000023f0| 6f 77 28 30 2d 39 39 29 | 3a 20 22 09 09 5c 20 70 |ow(0-99)|: "..\ p|
|00002400| 72 6f 6d 70 74 20 66 6f | 72 20 72 6f 77 20 23 0a |rompt fo|r row #.|
|00002410| 09 23 69 6e 20 64 75 70 | 20 30 20 72 6f 77 5f 6d |.#in dup| 0 row_m|
|00002420| 61 78 20 77 69 74 68 69 | 6e 09 5c 20 63 68 65 63 |ax withi|n.\ chec|
|00002430| 6b 20 66 6f 72 20 70 72 | 6f 70 65 72 20 72 61 6e |k for pr|oper ran|
|00002440| 67 65 0a 09 69 66 09 28 | 20 72 6f 77 23 20 29 09 |ge..if.(| row# ).|
|00002450| 09 5c 20 69 66 20 6f 6b | 20 73 74 6f 72 65 20 69 |.\ if ok| store i|
|00002460| 74 0a 09 09 70 6f 73 32 | 20 2e 22 20 63 6f 6c 75 |t...pos2| ." colu|
|00002470| 6d 6e 28 61 2d 7a 29 3a | 20 22 09 5c 20 70 72 6f |mn(a-z):| ".\ pro|
|00002480| 6d 70 74 20 66 6f 72 20 | 63 6f 6c 20 23 20 28 61 |mpt for |col # (a|
|00002490| 2d 7a 29 0a 09 09 73 6b | 65 79 20 75 70 63 20 5b |-z)...sk|ey upc [|
|000024a0| 63 68 61 72 5d 20 41 20 | 2d 20 64 75 70 09 5c 20 |char] A |- dup.\ |
|000024b0| 63 68 65 63 6b 20 66 6f | 72 20 70 72 6f 70 65 72 |check fo|r proper|
|000024c0| 20 72 61 6e 67 65 0a 09 | 09 30 20 63 6f 6c 5f 6d | range..|.0 col_m|
|000024d0| 61 78 20 77 69 74 68 69 | 6e 09 5c 20 69 66 20 6f |ax withi|n.\ if o|
|000024e0| 6b 20 67 6f 74 6f 20 64 | 61 74 61 20 77 69 6e 64 |k goto d|ata wind|
|000024f0| 6f 77 0a 09 09 69 66 20 | 64 6f 5f 67 6f 5f 74 6f |ow...if |do_go_to|
|00002500| 20 65 6c 73 65 20 32 64 | 72 6f 70 20 74 68 65 6e | else 2d|rop then|
|00002510| 0a 09 65 6c 73 65 09 64 | 72 6f 70 0a 09 74 68 65 |..else.d|rop..the|
|00002520| 6e 20 20 3b 0a 0a 3a 20 | 74 68 65 5f 72 6f 77 09 |n ;..: |the_row.|
|00002530| 28 20 2d 2d 20 72 6f 77 | 23 20 29 09 72 6f 77 20 |( -- row|# ).row |
|00002540| 20 20 20 20 72 6f 77 2d | 64 69 73 70 20 2b 20 20 | row-|disp + |
|00002550| 3b 0a 3a 20 74 68 65 5f | 63 6f 6c 09 28 20 2d 2d |;.: the_|col.( --|
|00002560| 20 63 6f 6c 23 20 29 09 | 63 6f 6c 75 6d 6e 20 20 | col# ).|column |
|00002570| 63 6f 6c 2d 64 69 73 70 | 20 2b 20 20 3b 0a 0a 3a |col-disp| + ;..:|
|00002580| 20 66 69 72 73 74 5f 63 | 6f 6c 09 74 68 65 5f 72 | first_c|ol.the_r|
|00002590| 6f 77 20 30 20 64 6f 5f | 67 6f 5f 74 6f 20 20 3b |ow 0 do_|go_to ;|
|000025a0| 0a 3a 20 6c 61 73 74 5f | 63 6f 6c 09 74 68 65 5f |.: last_|col.the_|
|000025b0| 72 6f 77 20 63 6f 6c 5f | 6d 61 78 20 31 2d 20 20 |row col_|max 1- |
|000025c0| 64 6f 5f 67 6f 5f 74 6f | 20 20 3b 0a 3a 20 74 6f |do_go_to| ;.: to|
|000025d0| 70 5f 72 6f 77 09 30 20 | 74 68 65 5f 63 6f 6c 20 |p_row.0 |the_col |
|000025e0| 64 6f 5f 67 6f 5f 74 6f | 20 20 3b 0a 3a 20 62 6f |do_go_to| ;.: bo|
|000025f0| 74 74 6f 6d 5f 72 6f 77 | 09 72 6f 77 5f 6d 61 78 |ttom_row|.row_max|
|00002600| 20 31 2d 20 74 68 65 5f | 63 6f 6c 20 20 64 6f 5f | 1- the_|col do_|
|00002610| 67 6f 5f 74 6f 20 20 3b | 0a 3a 20 6c 65 66 74 5f |go_to ;|.: left_|
|00002620| 70 61 67 65 09 74 68 65 | 5f 72 6f 77 20 74 68 65 |page.the|_row the|
|00002630| 5f 63 6f 6c 20 63 6f 6c | 73 2f 70 61 67 65 20 2d |_col col|s/page -|
|00002640| 20 20 64 6f 5f 67 6f 5f | 74 6f 20 20 3b 0a 3a 20 | do_go_|to ;.: |
|00002650| 72 69 67 68 74 5f 70 61 | 67 65 09 74 68 65 5f 72 |right_pa|ge.the_r|
|00002660| 6f 77 20 74 68 65 5f 63 | 6f 6c 20 63 6f 6c 73 2f |ow the_c|ol cols/|
|00002670| 70 61 67 65 20 2b 20 20 | 64 6f 5f 67 6f 5f 74 6f |page + |do_go_to|
|00002680| 20 20 3b 0a 3a 20 64 6f | 77 6e 5f 70 61 67 65 09 | ;.: do|wn_page.|
|00002690| 74 68 65 5f 72 6f 77 20 | 72 6f 77 73 2f 70 61 67 |the_row |rows/pag|
|000026a0| 65 20 2b 20 20 74 68 65 | 5f 63 6f 6c 20 64 6f 5f |e + the|_col do_|
|000026b0| 67 6f 5f 74 6f 20 20 3b | 0a 3a 20 75 70 5f 70 61 |go_to ;|.: up_pa|
|000026c0| 67 65 09 74 68 65 5f 72 | 6f 77 20 72 6f 77 73 2f |ge.the_r|ow rows/|
|000026d0| 70 61 67 65 20 2d 20 20 | 74 68 65 5f 63 6f 6c 20 |page - |the_col |
|000026e0| 64 6f 5f 67 6f 5f 74 6f | 20 20 3b 0a 0a 5c 20 6f |do_go_to| ;..\ o|
|000026f0| 70 65 72 61 74 6f 72 20 | 69 6e 70 75 74 20 70 72 |perator |input pr|
|00002700| 6f 63 65 73 73 69 6e 67 | 0a 0a 64 65 63 69 6d 61 |ocessing|..decima|
|00002710| 6c 0a 3a 20 64 69 73 70 | 61 74 63 68 09 28 20 6b |l.: disp|atch.( k|
|00002720| 65 79 20 2d 2d 20 29 0a | 09 63 61 73 65 0a 09 09 |ey -- ).|.case...|
|00002730| 5b 63 68 61 72 5d 20 41 | 20 6f 66 20 61 67 61 69 |[char] A| of agai|
|00002740| 6e 5f 72 65 70 6c 09 09 | 65 6e 64 6f 66 0a 09 09 |n_repl..|endof...|
|00002750| 5b 63 68 61 72 5d 20 43 | 20 6f 66 20 69 6e 70 75 |[char] C| of inpu|
|00002760| 74 5f 63 6f 6c 5f 6e 61 | 6d 65 73 09 65 6e 64 6f |t_col_na|mes.endo|
|00002770| 66 0a 09 09 5b 63 68 61 | 72 5d 20 44 20 6f 66 20 |f...[cha|r] D of |
|00002780| 69 6e 70 75 74 5f 63 65 | 6c 6c 5f 64 61 74 61 09 |input_ce|ll_data.|
|00002790| 65 6e 64 6f 66 0a 09 09 | 5b 63 68 61 72 5d 20 45 |endof...|[char] E|
|000027a0| 20 6f 66 20 69 6e 70 75 | 74 5f 65 71 75 09 09 65 | of inpu|t_equ..e|
|000027b0| 6e 64 6f 66 0a 09 09 5b | 63 68 61 72 5d 20 46 20 |ndof...[|char] F |
|000027c0| 6f 66 20 66 6f 72 6d 61 | 74 09 09 65 6e 64 6f 66 |of forma|t..endof|
|000027d0| 0a 09 09 5b 63 68 61 72 | 5d 20 47 20 6f 66 20 67 |...[char|] G of g|
|000027e0| 6f 5f 74 6f 09 09 65 6e | 64 6f 66 0a 09 09 5b 63 |o_to..en|dof...[c|
|000027f0| 68 61 72 5d 20 4d 20 6f | 66 20 6d 6f 64 65 09 09 |har] M o|f mode..|
|00002800| 65 6e 64 6f 66 0a 09 09 | 5b 63 68 61 72 5d 20 4e |endof...|[char] N|
|00002810| 20 6f 66 20 6e 65 77 09 | 09 09 65 6e 64 6f 66 0a | of new.|..endof.|
|00002820| 09 09 5b 63 68 61 72 5d | 20 4f 20 6f 66 20 63 61 |..[char]| O of ca|
|00002830| 6c 63 5f 6f 72 64 65 72 | 09 09 65 6e 64 6f 66 0a |lc_order|..endof.|
|00002840| 09 09 5b 63 68 61 72 5d | 20 50 20 6f 66 20 70 65 |..[char]| P of pe|
|00002850| 72 66 6f 72 6d 5f 63 61 | 6c 63 09 65 6e 64 6f 66 |rform_ca|lc.endof|
|00002860| 0a 09 09 5b 63 68 61 72 | 5d 20 51 20 6f 66 20 71 |...[char|] Q of q|
|00002870| 75 69 74 5f 63 61 6c 63 | 09 09 65 6e 64 6f 66 0a |uit_calc|..endof.|
|00002880| 09 09 5b 63 68 61 72 5d | 20 52 20 6f 66 20 69 6e |..[char]| R of in|
|00002890| 70 75 74 5f 72 6f 77 5f | 6e 61 6d 65 73 09 65 6e |put_row_|names.en|
|000028a0| 64 6f 66 0a 09 09 5b 63 | 68 61 72 5d 20 53 20 6f |dof...[c|har] S o|
|000028b0| 66 20 69 6e 70 75 74 5f | 61 70 70 6c 69 63 61 74 |f input_|applicat|
|000028c0| 69 6f 6e 09 65 6e 64 6f | 66 0a 09 09 63 6f 6e 74 |ion.endo|f...cont|
|000028d0| 72 6f 6c 20 42 20 6f 66 | 20 6c 65 66 74 5f 61 72 |rol B of| left_ar|
|000028e0| 72 6f 77 09 09 65 6e 64 | 6f 66 0a 09 09 63 6f 6e |row..end|of...con|
|000028f0| 74 72 6f 6c 20 46 20 6f | 66 20 72 69 67 68 74 5f |trol F o|f right_|
|00002900| 61 72 72 6f 77 09 65 6e | 64 6f 66 0a 09 09 63 6f |arrow.en|dof...co|
|00002910| 6e 74 72 6f 6c 20 4e 20 | 6f 66 20 64 6f 77 6e 5f |ntrol N |of down_|
|00002920| 61 72 72 6f 77 09 09 65 | 6e 64 6f 66 0a 09 09 63 |arrow..e|ndof...c|
|00002930| 6f 6e 74 72 6f 6c 20 50 | 20 6f 66 20 75 70 5f 61 |ontrol P| of up_a|
|00002940| 72 72 6f 77 09 09 65 6e | 64 6f 66 0a 09 09 63 6f |rrow..en|dof...co|
|00002950| 6e 74 72 6f 6c 20 41 20 | 6f 66 20 66 69 72 73 74 |ntrol A |of first|
|00002960| 5f 63 6f 6c 09 09 65 6e | 64 6f 66 0a 09 09 63 6f |_col..en|dof...co|
|00002970| 6e 74 72 6f 6c 20 45 20 | 6f 66 20 6c 61 73 74 5f |ntrol E |of last_|
|00002980| 63 6f 6c 09 09 65 6e 64 | 6f 66 0a 09 09 63 6f 6e |col..end|of...con|
|00002990| 74 72 6f 6c 20 59 20 6f | 66 20 6c 65 66 74 5f 70 |trol Y o|f left_p|
|000029a0| 61 67 65 09 09 65 6e 64 | 6f 66 0a 09 09 63 6f 6e |age..end|of...con|
|000029b0| 74 72 6f 6c 20 55 20 6f | 66 20 72 69 67 68 74 5f |trol U o|f right_|
|000029c0| 70 61 67 65 09 09 65 6e | 64 6f 66 0a 09 09 63 6f |page..en|dof...co|
|000029d0| 6e 74 72 6f 6c 20 56 20 | 6f 66 20 64 6f 77 6e 5f |ntrol V |of down_|
|000029e0| 70 61 67 65 09 09 65 6e | 64 6f 66 0a 09 09 63 6f |page..en|dof...co|
|000029f0| 6e 74 72 6f 6c 20 54 20 | 6f 66 20 75 70 5f 70 61 |ntrol T |of up_pa|
|00002a00| 67 65 09 09 65 6e 64 6f | 66 0a 09 09 63 6f 6e 74 |ge..endo|f...cont|
|00002a10| 72 6f 6c 20 4c 20 6f 66 | 20 70 65 72 66 6f 72 6d |rol L of| perform|
|00002a20| 5f 63 61 6c 63 09 65 6e | 64 6f 66 0a 09 09 63 6f |_calc.en|dof...co|
|00002a30| 6e 74 72 6f 6c 20 5a 20 | 6f 66 20 71 75 69 74 5f |ntrol Z |of quit_|
|00002a40| 63 61 6c 63 09 09 65 6e | 64 6f 66 0a 09 09 62 65 |calc..en|dof...be|
|00002a50| 65 70 0a 09 65 6e 64 63 | 61 73 65 20 3b 0a 00 00 |ep..endc|ase ;...|
|00002a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 21 46 6f 72 74 68 6d 61 | 63 73 2e 73 70 72 65 61 |!Forthma|cs.sprea|
|00002c10| 64 2e 70 6f 72 74 61 62 | 00 00 00 00 00 00 00 00 |d.portab|........|
|00002c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c60| 00 00 00 00 20 20 20 36 | 30 30 00 00 20 20 20 20 |.... 6|00.. |
|00002c70| 20 30 00 00 20 20 20 20 | 20 30 00 00 20 20 20 20 | 0.. | 0.. |
|00002c80| 20 20 20 31 32 32 35 00 | 20 36 31 33 33 32 35 30 | 1225.| 6133250|
|00002c90| 33 34 32 00 20 31 36 37 | 30 32 00 20 30 00 00 00 |342. 167|02. 0...|
|00002ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d00| 00 41 72 63 68 69 65 20 | 00 33 37 37 37 37 37 37 |.Archie |.3777777|
|00002d10| 37 35 30 36 00 32 37 35 | 32 33 32 30 31 32 34 32 |7506.275|23201242|
|00002d20| 00 20 20 20 20 20 20 20 | 20 20 20 33 00 34 36 20 |. | 3.46 |
|00002d30| 62 64 34 64 30 32 61 32 | 00 20 20 20 20 20 20 20 |bd4d02a2|. |
|00002d40| 20 20 20 30 20 41 00 00 | 00 00 00 00 00 00 00 00 | 0 A..|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 76 6f 63 61 62 75 6c 61 | 72 79 20 73 70 72 65 61 |vocabula|ry sprea|
|00002e10| 64 0a 6f 6e 6c 79 20 66 | 6f 72 74 68 20 61 6c 73 |d.only f|orth als|
|00002e20| 6f 20 20 73 70 72 65 61 | 64 20 61 6c 73 6f 20 20 |o sprea|d also |
|00002e30| 64 65 66 69 6e 69 74 69 | 6f 6e 73 0a 5c 20 50 6f |definiti|ons.\ Po|
|00002e40| 72 74 61 62 69 6c 69 74 | 79 20 64 65 66 69 6e 69 |rtabilit|y defini|
|00002e50| 74 69 6f 6e 73 0a 5c 20 | 49 6e 70 75 74 73 20 73 |tions.\ |Inputs s|
|00002e60| 70 65 63 69 61 6c 20 69 | 62 6d 20 6b 65 79 73 2e |pecial i|bm keys.|
|00002e70| 20 20 53 65 74 73 20 62 | 69 74 20 37 20 69 66 20 | Sets b|it 7 if |
|00002e80| 6b 65 79 20 69 73 20 73 | 70 65 63 69 61 6c 2e 0a |key is s|pecial..|
|00002e90| 3a 20 69 62 6d 5f 6b 65 | 79 20 20 28 20 2d 2d 20 |: ibm_ke|y ( -- |
|00002ea0| 61 73 63 69 69 20 7c 20 | 73 63 61 6e 2d 63 6f 64 |ascii | |scan-cod|
|00002eb0| 65 2b 31 32 38 20 29 0a | 20 20 20 63 75 72 73 6f |e+128 ).| curso|
|00002ec0| 72 2d 6f 6e 0a 20 20 20 | 5b 20 73 79 73 74 65 6d |r-on. |[ system|
|00002ed0| 20 5d 20 63 5f 72 61 77 | 63 69 6e 20 20 28 20 73 | ] c_raw|cin ( s|
|00002ee0| 63 61 6e 2d 63 6f 64 65 | 7c 61 73 63 69 69 20 29 |can-code||ascii )|
|00002ef0| 20 20 20 64 75 70 20 74 | 68 20 66 66 20 61 6e 64 | dup t|h ff and|
|00002f00| 0a 20 20 20 69 66 20 20 | 20 20 74 68 20 37 66 20 |. if | th 7f |
|00002f10| 61 6e 64 20 20 65 6c 73 | 65 20 20 74 68 20 31 30 |and els|e th 10|
|00002f20| 20 3e 3e 20 74 68 20 37 | 66 20 61 6e 64 20 20 74 | >> th 7|f and t|
|00002f30| 68 20 38 30 20 2b 20 20 | 74 68 65 6e 0a 20 20 20 |h 80 + |then. |
|00002f40| 63 75 72 73 6f 72 2d 6f | 66 66 0a 3b 0a 0a 5c 20 |cursor-o|ff.;..\ |
|00002f50| 50 6f 72 74 61 62 69 6c | 69 74 79 3a 20 54 65 72 |Portabil|ity: Ter|
|00002f60| 6d 69 6e 61 6c 20 63 6f | 6e 74 72 6f 6c 0a 0a 3a |minal co|ntrol..:|
|00002f70| 20 62 6c 6f 74 20 20 28 | 20 63 6f 6c 75 6d 6e 23 | blot (| column#|
|00002f80| 20 2d 2d 20 29 20 20 64 | 72 6f 70 20 6b 69 6c 6c | -- ) d|rop kill|
|00002f90| 2d 6c 69 6e 65 20 20 3b | 0a 61 6c 69 61 73 20 64 |-line ;|.alias d|
|00002fa0| 61 72 6b 20 65 72 61 73 | 65 2d 73 63 72 65 65 6e |ark eras|e-screen|
|00002fb0| 0a 3a 20 65 72 61 73 65 | 2d 72 65 73 74 2d 6f 66 |.: erase|-rest-of|
|00002fc0| 2d 73 63 72 65 65 6e 20 | 20 28 20 2d 2d 20 29 20 |-screen | ( -- ) |
|00002fd0| 20 6b 69 6c 6c 2d 73 63 | 72 65 65 6e 20 20 3b 0a | kill-sc|reen ;.|
|00002fe0| 0a 5c 20 50 6f 72 74 61 | 62 69 6c 69 74 79 3a 20 |.\ Porta|bility: |
|00002ff0| 33 32 2d 62 69 74 20 6f | 70 65 72 61 74 6f 72 73 |32-bit o|perators|
|00003000| 0a 3a 20 6c 2f 20 2f 20 | 3b 20 20 3a 20 6c 6d 6f |.: l/ / |; : lmo|
|00003010| 64 20 6d 6f 64 20 3b 0a | 0a 5c 20 53 63 72 65 65 |d mod ;.|.\ Scree|
|00003020| 6e 20 73 69 7a 65 0a 5c | 20 38 30 20 63 6f 6e 73 |n size.\| 80 cons|
|00003030| 74 61 6e 74 20 73 63 72 | 65 65 6e 2d 77 69 64 74 |tant scr|een-widt|
|00003040| 68 0a 5c 20 32 35 20 63 | 6f 6e 73 74 61 6e 74 20 |h.\ 25 c|onstant |
|00003050| 73 63 72 65 65 6e 2d 68 | 65 69 67 68 74 0a 61 6c |screen-h|eight.al|
|00003060| 69 61 73 20 73 63 72 65 | 65 6e 2d 77 69 64 74 68 |ias scre|en-width|
|00003070| 20 23 63 6f 6c 75 6d 6e | 73 0a 61 6c 69 61 73 20 | #column|s.alias |
|00003080| 73 63 72 65 65 6e 2d 68 | 65 69 67 68 74 20 23 6c |screen-h|eight #l|
|00003090| 69 6e 65 73 0a 00 00 00 | 00 00 00 00 00 00 00 00 |ines....|........|
|000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003200| 21 46 6f 72 74 68 6d 61 | 63 73 2e 73 70 72 65 61 |!Forthma|cs.sprea|
|00003210| 64 2e 70 6f 72 74 61 67 | 65 6d 00 00 00 00 00 00 |d.portag|em......|
|00003220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003260| 00 00 00 00 20 20 20 36 | 30 30 00 00 20 20 20 20 |.... 6|00.. |
|00003270| 20 30 00 00 20 20 20 20 | 20 30 00 00 20 20 20 20 | 0.. | 0.. |
|00003280| 20 20 20 31 33 33 35 00 | 20 36 31 33 33 32 35 30 | 1335.| 6133250|
|00003290| 33 35 36 00 20 31 37 31 | 37 31 00 20 30 00 00 00 |356. 171|71. 0...|
|000032a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003300| 00 41 72 63 68 69 65 20 | 00 33 37 37 37 37 37 37 |.Archie |.3777777|
|00003310| 37 35 30 36 00 32 37 35 | 32 33 32 30 33 34 36 30 |7506.275|23203460|
|00003320| 00 20 20 20 20 20 20 20 | 20 20 20 33 00 34 36 20 |. | 3.46 |
|00003330| 62 64 34 64 30 37 33 30 | 00 20 20 20 20 20 20 20 |bd4d0730|. |
|00003340| 20 20 20 30 20 41 00 00 | 00 00 00 00 00 00 00 00 | 0 A..|........|
|00003350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003400| 76 6f 63 61 62 75 6c 61 | 72 79 20 73 70 72 65 61 |vocabula|ry sprea|
|00003410| 64 0a 6f 6e 6c 79 20 66 | 6f 72 74 68 20 61 6c 73 |d.only f|orth als|
|00003420| 6f 20 20 73 70 72 65 61 | 64 20 61 6c 73 6f 20 20 |o sprea|d also |
|00003430| 64 65 66 69 6e 69 74 69 | 6f 6e 73 0a 61 6c 73 6f |definiti|ons.also|
|00003440| 20 77 69 6e 64 6f 77 73 | 20 61 6c 73 6f 20 73 63 | windows| also sc|
|00003450| 72 6f 6c 6c 65 72 73 20 | 61 6c 73 6f 0a 0a 5c 20 |rollers |also..\ |
|00003460| 50 6f 72 74 61 62 69 6c | 69 74 79 20 64 65 66 69 |Portabil|ity defi|
|00003470| 6e 69 74 69 6f 6e 73 0a | 5c 20 49 6e 70 75 74 73 |nitions.|\ Inputs|
|00003480| 20 73 70 65 63 69 61 6c | 20 69 62 6d 20 6b 65 79 | special| ibm key|
|00003490| 73 2e 20 20 53 65 74 73 | 20 62 69 74 20 37 20 69 |s. Sets| bit 7 i|
|000034a0| 66 20 6b 65 79 20 69 73 | 20 73 70 65 63 69 61 6c |f key is| special|
|000034b0| 2e 0a 3a 20 69 62 6d 5f | 6b 65 79 20 20 28 20 2d |..: ibm_|key ( -|
|000034c0| 2d 20 61 73 63 69 69 20 | 7c 20 73 63 61 6e 2d 63 |- ascii || scan-c|
|000034d0| 6f 64 65 2b 31 32 38 20 | 29 0a 20 20 20 65 76 65 |ode+128 |). eve|
|000034e0| 6e 74 2d 6b 65 79 20 20 | 64 72 6f 70 20 20 65 76 |nt-key |drop ev|
|000034f0| 65 6e 74 2d 73 63 61 6e | 63 6f 64 65 20 40 20 20 |ent-scan|code @ |
|00003500| 20 64 75 70 20 74 68 20 | 66 66 20 61 6e 64 0a 20 | dup th |ff and. |
|00003510| 20 20 69 66 20 20 74 68 | 20 37 66 20 61 6e 64 20 | if th| 7f and |
|00003520| 20 65 6c 73 65 20 20 74 | 68 20 31 30 20 3e 3e 20 | else t|h 10 >> |
|00003530| 74 68 20 37 66 20 61 6e | 64 20 20 74 68 20 38 30 |th 7f an|d th 80|
|00003540| 20 2b 20 20 74 68 65 6e | 0a 3b 0a 0a 5c 20 50 6f | + then|.;..\ Po|
|00003550| 72 74 61 62 69 6c 69 74 | 79 3a 20 54 65 72 6d 69 |rtabilit|y: Termi|
|00003560| 6e 61 6c 20 63 6f 6e 74 | 72 6f 6c 0a 3a 20 62 6c |nal cont|rol.: bl|
|00003570| 6f 74 20 20 28 20 63 6f | 6c 75 6d 6e 23 20 2d 2d |ot ( co|lumn# --|
|00003580| 20 29 20 20 64 72 6f 70 | 20 6b 69 6c 6c 2d 6c 69 | ) drop| kill-li|
|00003590| 6e 65 20 20 3b 0a 3a 20 | 64 61 72 6b 20 20 28 20 |ne ;.: |dark ( |
|000035a0| 2d 2d 20 29 20 20 65 72 | 61 73 65 2d 73 63 72 65 |-- ) er|ase-scre|
|000035b0| 65 6e 20 20 3f 72 65 66 | 72 61 6d 65 20 20 3b 0a |en ?ref|rame ;.|
|000035c0| 3a 20 65 72 61 73 65 2d | 72 65 73 74 2d 6f 66 2d |: erase-|rest-of-|
|000035d0| 73 63 72 65 65 6e 20 20 | 28 20 2d 2d 20 29 20 20 |screen |( -- ) |
|000035e0| 6b 69 6c 6c 2d 73 63 72 | 65 65 6e 20 20 3b 0a 0a |kill-scr|een ;..|
|000035f0| 5c 20 50 6f 72 74 61 62 | 69 6c 69 74 79 3a 20 33 |\ Portab|ility: 3|
|00003600| 32 2d 62 69 74 20 6f 70 | 65 72 61 74 6f 72 73 0a |2-bit op|erators.|
|00003610| 3a 20 6c 2f 20 2f 20 3b | 20 20 3a 20 6c 6d 6f 64 |: l/ / ;| : lmod|
|00003620| 20 6d 6f 64 20 3b 0a 0a | 5c 20 53 63 72 65 65 6e | mod ;..|\ Screen|
|00003630| 20 73 69 7a 65 0a 3a 20 | 73 63 72 65 65 6e 2d 77 | size.: |screen-w|
|00003640| 69 64 74 68 20 20 28 20 | 2d 2d 20 23 63 6f 6c 75 |idth ( |-- #colu|
|00003650| 6d 6e 73 20 29 20 20 77 | 69 6e 64 6f 77 2d 77 69 |mns ) w|indow-wi|
|00003660| 64 74 68 20 61 73 63 69 | 69 20 61 20 63 68 61 72 |dth asci|i a char|
|00003670| 61 63 74 65 72 2d 77 69 | 64 74 68 20 2f 20 20 3b |acter-wi|dth / ;|
|00003680| 0a 3a 20 73 63 72 65 65 | 6e 2d 68 65 69 67 68 74 |.: scree|n-height|
|00003690| 20 20 28 20 2d 2d 20 23 | 6c 69 6e 65 73 20 29 20 | ( -- #|lines ) |
|000036a0| 20 77 69 6e 64 6f 77 2d | 68 65 69 67 68 74 20 20 | window-|height |
|000036b0| 70 69 78 65 6c 73 2f 6c | 69 6e 65 20 2f 20 20 3b |pixels/l|ine / ;|
|000036c0| 0a 0a 70 72 65 76 69 6f | 75 73 20 70 72 65 76 69 |..previo|us previ|
|000036d0| 6f 75 73 20 70 72 65 76 | 69 6f 75 73 0a 00 00 00 |ous prev|ious....|
|000036e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003800| 21 46 6f 72 74 68 6d 61 | 63 73 2e 73 70 72 65 61 |!Forthma|cs.sprea|
|00003810| 64 2e 72 69 73 63 6f 73 | 00 00 00 00 00 00 00 00 |d.riscos|........|
|00003820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003860| 00 00 00 00 20 20 20 36 | 30 30 00 00 20 20 20 20 |.... 6|00.. |
|00003870| 20 30 00 00 20 20 20 20 | 20 30 00 00 20 20 20 20 | 0.. | 0.. |
|00003880| 20 20 20 31 31 36 32 00 | 20 36 31 35 36 31 32 35 | 1162.| 6156125|
|00003890| 34 35 30 00 20 31 37 30 | 32 35 00 20 30 00 00 00 |450. 170|25. 0...|
|000038a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003900| 00 41 72 63 68 69 65 20 | 00 33 37 37 37 37 37 37 |.Archie |.3777777|
|00003910| 37 35 30 36 00 33 33 32 | 35 37 30 34 33 30 35 37 |7506.332|57043057|
|00003920| 00 20 20 20 20 20 20 20 | 20 20 20 33 00 34 36 20 |. | 3.46 |
|00003930| 64 61 62 63 34 36 32 66 | 00 20 20 20 20 20 20 20 |dabc462f|. |
|00003940| 20 20 20 30 20 41 00 00 | 00 00 00 00 00 00 00 00 | 0 A..|........|
|00003950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a00| 6f 6e 6c 79 20 66 6f 72 | 74 68 20 61 6c 73 6f 20 |only for|th also |
|00003a10| 64 65 66 69 6e 69 74 69 | 6f 6e 73 20 20 64 65 63 |definiti|ons dec|
|00003a20| 69 6d 61 6c 0a 76 6f 63 | 61 62 75 6c 61 72 79 20 |imal.voc|abulary |
|00003a30| 73 70 72 65 61 64 20 73 | 70 72 65 61 64 20 61 6c |spread s|pread al|
|00003a40| 73 6f 20 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 0a |so defi|nitions.|
|00003a50| 0a 5c 20 50 6f 72 74 61 | 62 69 6c 69 74 79 3a 20 |.\ Porta|bility: |
|00003a60| 54 65 72 6d 69 6e 61 6c | 20 63 6f 6e 74 72 6f 6c |Terminal| control|
|00003a70| 0a 0a 3a 20 62 6c 6f 74 | 09 28 20 63 6f 6c 75 6d |..: blot|.( colum|
|00003a80| 6e 23 20 2d 2d 20 29 09 | 09 64 72 6f 70 20 6b 69 |n# -- ).|.drop ki|
|00003a90| 6c 6c 2d 6c 69 6e 65 20 | 20 3b 0a 0a 66 6c 6f 61 |ll-line | ;..floa|
|00003aa0| 64 20 73 70 72 65 61 64 | 2f 73 70 72 65 61 64 2e |d spread|/spread.|
|00003ab0| 66 74 68 0a 73 70 72 65 | 61 64 20 61 6c 73 6f 0a |fth.spre|ad also.|
|00003ac0| 3a 20 73 65 72 76 65 2d | 73 70 72 65 61 64 09 28 |: serve-|spread.(|
|00003ad0| 20 2d 2d 20 29 0a 09 61 | 73 74 72 69 6e 67 20 61 | -- )..a|string a|
|00003ae0| 73 74 72 69 6e 67 20 6c | 6f 63 61 6c 73 7c 20 62 |string l|ocals| b|
|00003af0| 69 6e 2d 6e 61 6d 65 20 | 63 6d 64 20 7c 0a 09 70 |in-name |cmd |..p|
|00003b00| 22 20 3c 46 6f 72 74 68 | 6d 61 63 73 24 44 69 72 |" <Forth|macs$Dir|
|00003b10| 3e 2e 70 72 69 76 61 74 | 65 2e 62 69 6e 2e 22 20 |>.privat|e.bin." |
|00003b20| 62 69 6e 2d 6e 61 6d 65 | 20 22 63 6f 70 79 0a 09 |bin-name| "copy..|
|00003b30| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2d 6e 61 6d 65 |applicat|ion-name|
|00003b40| 20 62 69 6e 2d 6e 61 6d | 65 20 22 63 61 74 0a 09 | bin-nam|e "cat..|
|00003b50| 62 69 6e 2d 6e 61 6d 65 | 20 73 61 76 65 2d 66 6f |bin-name| save-fo|
|00003b60| 72 74 68 0a 09 70 22 20 | 73 65 74 74 79 70 65 20 |rth..p" |settype |
|00003b70| 20 22 20 63 6d 64 20 22 | 63 6f 70 79 0a 09 62 69 | " cmd "|copy..bi|
|00003b80| 6e 2d 6e 61 6d 65 20 63 | 6d 64 20 22 63 61 74 0a |n-name c|md "cat.|
|00003b90| 09 70 22 20 20 61 62 73 | 6f 6c 75 74 65 22 20 63 |.p" abs|olute" c|
|00003ba0| 6d 64 20 22 63 61 74 0a | 09 63 6d 64 20 20 22 63 |md "cat.|.cmd "c|
|00003bb0| 6c 69 20 64 72 6f 70 0a | 09 62 79 65 20 3b 0a 09 |li drop.|.bye ;..|
|00003bc0| 27 20 73 65 72 76 65 2d | 73 70 72 65 61 64 20 69 |' serve-|spread i|
|00003bd0| 73 20 71 75 69 74 2d 73 | 70 72 65 61 64 0a 0a 3a |s quit-s|pread..:|
|00003be0| 20 61 62 6f 72 74 2d 73 | 70 72 65 61 64 0a 09 63 | abort-s|pread..c|
|00003bf0| 6c 65 61 72 20 72 70 30 | 20 40 20 72 70 21 0a 09 |lear rp0| @ rp!..|
|00003c00| 63 6c 65 61 72 0a 09 73 | 70 72 65 61 64 73 68 65 |clear..s|preadshe|
|00003c10| 65 74 20 3b 0a 09 27 20 | 61 62 6f 72 74 2d 73 70 |et ;..' |abort-sp|
|00003c20| 72 65 61 64 20 69 73 20 | 61 62 6f 72 74 0a 0a 3a |read is |abort..:|
|00003c30| 20 28 63 6f 6c 64 2d 68 | 6f 6f 6b 0a 09 28 63 6f | (cold-h|ook..(co|
|00003c40| 6c 64 2d 68 6f 6f 6b 0a | 09 73 70 72 65 61 64 73 |ld-hook.|.spreads|
|00003c50| 68 65 65 74 20 3b 0a 09 | 27 20 28 63 6f 6c 64 2d |heet ;..|' (cold-|
|00003c60| 68 6f 6f 6b 20 69 73 20 | 63 6f 6c 64 2d 68 6f 6f |hook is |cold-hoo|
|00003c70| 6b 0a 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |k.......|........|
|00003c80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e00| 21 46 6f 72 74 68 6d 61 | 63 73 2e 73 70 72 65 61 |!Forthma|cs.sprea|
|00003e10| 64 2e 73 70 72 65 61 64 | 00 00 00 00 00 00 00 00 |d.spread|........|
|00003e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e60| 00 00 00 00 20 20 20 36 | 30 30 00 00 20 20 20 20 |.... 6|00.. |
|00003e70| 20 30 00 00 20 20 20 20 | 20 30 00 00 20 20 20 20 | 0.. | 0.. |
|00003e80| 20 20 33 32 36 33 37 00 | 20 36 31 35 36 31 32 35 | 32637.| 6156125|
|00003e90| 34 33 36 00 20 31 37 30 | 31 35 00 20 30 00 00 00 |436. 170|15. 0...|
|00003ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f00| 00 41 72 63 68 69 65 20 | 00 33 37 37 37 37 37 37 |.Archie |.3777777|
|00003f10| 37 35 30 36 00 33 33 32 | 35 37 30 34 31 30 33 32 |7506.332|57041032|
|00003f20| 00 20 20 20 20 20 20 20 | 20 20 20 33 00 34 36 20 |. | 3.46 |
|00003f30| 64 61 62 63 34 32 31 61 | 00 20 20 20 20 20 20 20 |dabc421a|. |
|00003f40| 20 20 20 30 20 41 00 00 | 00 00 00 00 00 00 00 00 | 0 A..|........|
|00003f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004000| 5c 20 63 6f 6e 73 74 61 | 6e 74 20 26 20 76 61 72 |\ consta|nt & var|
|00004010| 69 61 62 6c 65 20 64 65 | 63 6c 61 72 61 74 69 6f |iable de|claratio|
|00004020| 6e 73 0a 0a 64 65 63 69 | 6d 61 6c 0a 0a 64 65 66 |ns..deci|mal..def|
|00004030| 65 72 20 71 75 69 74 2d | 73 70 72 65 61 64 20 20 |er quit-|spread |
|00004040| 27 20 61 62 6f 72 74 20 | 69 73 20 71 75 69 74 2d |' abort |is quit-|
|00004050| 73 70 72 65 61 64 0a 0a | 31 30 30 20 63 6f 6e 73 |spread..|100 cons|
|00004060| 74 61 6e 74 20 72 6f 77 | 5f 6d 61 78 09 09 09 5c |tant row|_max...\|
|00004070| 20 23 20 6f 66 20 73 70 | 72 65 61 64 73 68 65 65 | # of sp|readshee|
|00004080| 74 20 72 6f 77 73 0a 20 | 32 36 20 63 6f 6e 73 74 |t rows. |26 const|
|00004090| 61 6e 74 20 63 6f 6c 5f | 6d 61 78 09 09 09 5c 20 |ant col_|max...\ |
|000040a0| 23 20 6f 66 20 73 70 72 | 65 61 64 73 68 65 65 74 |# of spr|eadsheet|
|000040b0| 20 63 6f 6c 75 6d 6e 73 | 0a 20 31 33 20 63 6f 6e | columns|. 13 con|
|000040c0| 73 74 61 6e 74 20 63 6f | 6c 75 6d 6e 2d 77 69 64 |stant co|lumn-wid|
|000040d0| 74 68 09 09 5c 20 44 69 | 73 74 61 6e 63 65 20 66 |th..\ Di|stance f|
|000040e0| 72 6f 6d 20 6f 6e 65 20 | 63 6f 6c 75 6d 6e 20 74 |rom one |column t|
|000040f0| 6f 20 74 68 65 20 6e 65 | 78 74 0a 20 20 38 20 63 |o the ne|xt. 8 c|
|00004100| 6f 6e 73 74 61 6e 74 20 | 6d 65 6e 75 2d 63 6f 6c |onstant |menu-col|
|00004110| 75 6d 6e 2d 77 69 64 74 | 68 0a 20 20 33 20 63 6f |umn-widt|h. 3 co|
|00004120| 6e 73 74 61 6e 74 20 72 | 6f 77 5f 6f 72 67 09 09 |nstant r|ow_org..|
|00004130| 09 5c 20 72 6f 77 20 6f | 72 69 67 69 6e 20 6f 66 |.\ row o|rigin of|
|00004140| 20 64 61 74 61 20 6f 6e | 20 64 69 73 70 6c 61 79 | data on| display|
|00004150| 0a 0a 20 32 30 20 63 6f | 6e 73 74 61 6e 74 20 72 |.. 20 co|nstant r|
|00004160| 6f 77 5f 6e 61 6d 65 5f | 6c 65 6e 09 09 5c 20 4c |ow_name_|len..\ L|
|00004170| 6f 6e 67 65 73 74 20 72 | 6f 77 20 6e 61 6d 65 20 |ongest r|ow name |
|00004180| 77 65 20 77 69 6c 6c 20 | 61 6c 6c 6f 77 0a 20 31 |we will |allow. 1|
|00004190| 32 20 63 6f 6e 73 74 61 | 6e 74 20 63 6f 6c 5f 6e |2 consta|nt col_n|
|000041a0| 61 6d 65 5f 6c 65 6e 09 | 09 5c 20 6d 61 78 20 6c |ame_len.|.\ max l|
|000041b0| 65 6e 67 74 68 20 6f 66 | 20 63 6f 6c 75 6d 6e 20 |ength of| column |
|000041c0| 6e 61 6d 65 0a 0a 5c 20 | 54 68 65 20 62 61 73 69 |name..\ |The basi|
|000041d0| 63 20 66 69 78 65 64 20 | 73 69 7a 65 73 20 61 72 |c fixed |sizes ar|
|000041e0| 65 3a 0a 5c 20 31 29 20 | 74 68 65 20 77 69 64 74 |e:.\ 1) |the widt|
|000041f0| 68 20 61 6e 64 20 68 65 | 69 67 68 74 20 6f 66 20 |h and he|ight of |
|00004200| 74 68 65 20 73 63 72 65 | 65 6e 0a 5c 20 32 29 20 |the scre|en.\ 2) |
|00004210| 54 68 65 20 68 65 69 67 | 68 74 20 6f 66 20 74 68 |The heig|ht of th|
|00004220| 65 20 74 6f 70 20 62 6f | 72 64 65 72 20 2d 20 33 |e top bo|rder - 3|
|00004230| 20 6c 69 6e 65 73 0a 5c | 20 33 29 20 54 68 65 20 | lines.\| 3) The |
|00004240| 68 65 69 67 68 74 20 6f | 66 20 74 68 65 20 62 6f |height o|f the bo|
|00004250| 74 74 6f 6d 20 65 63 68 | 6f 2f 73 74 61 74 75 73 |ttom ech|o/status|
|00004260| 20 61 72 65 61 20 2d 20 | 34 20 6c 69 6e 65 73 20 | area - |4 lines |
|00004270| 2b 20 62 6f 72 64 65 72 | 20 3d 20 35 0a 5c 20 34 |+ border| = 5.\ 4|
|00004280| 29 20 54 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |) The nu|mber of |
|00004290| 64 61 74 61 20 63 6f 6c | 75 6d 6e 73 20 28 63 6f |data col|umns (co|
|000042a0| 6c 73 2f 70 61 67 65 29 | 0a 5c 20 35 29 20 54 68 |ls/page)|.\ 5) Th|
|000042b0| 65 20 77 69 64 74 68 20 | 6f 66 20 74 68 65 20 6d |e width |of the m|
|000042c0| 65 6e 75 20 63 6f 6c 75 | 6d 6e 20 2d 20 36 20 63 |enu colu|mn - 6 c|
|000042d0| 68 61 72 61 63 74 65 72 | 73 0a 5c 20 36 29 20 54 |haracter|s.\ 6) T|
|000042e0| 68 65 20 77 69 64 74 68 | 20 6f 66 20 61 20 64 61 |he width| of a da|
|000042f0| 74 61 20 63 6f 6c 75 6d | 6e 20 2d 20 31 33 20 63 |ta colum|n - 13 c|
|00004300| 68 61 72 61 63 74 65 72 | 20 63 6f 6c 75 6d 6e 73 |haracter| columns|
|00004310| 0a 5c 20 46 72 6f 6d 20 | 74 68 65 73 65 20 70 61 |.\ From |these pa|
|00004320| 72 61 6d 65 74 65 72 73 | 2c 20 74 68 65 20 6e 75 |rameters|, the nu|
|00004330| 6d 62 65 72 20 6f 66 20 | 72 6f 77 73 20 61 6e 64 |mber of |rows and|
|00004340| 20 74 68 65 20 77 69 64 | 74 68 20 6f 66 20 74 68 | the wid|th of th|
|00004350| 65 20 72 6f 77 20 6c 61 | 62 65 6c 73 0a 5c 20 69 |e row la|bels.\ i|
|00004360| 73 20 63 61 6c 63 75 6c | 61 74 65 64 2e 0a 0a 3a |s calcul|ated...:|
|00004370| 20 66 72 6f 6d 2d 62 6f | 74 74 6f 6d 09 28 20 6f | from-bo|ttom.( o|
|00004380| 66 66 73 65 74 20 2d 2d | 20 6c 69 6e 65 23 20 29 |ffset --| line# )|
|00004390| 09 23 6c 69 6e 65 73 20 | 73 77 61 70 20 2d 20 20 |.#lines |swap - |
|000043a0| 3b 0a 3a 20 66 72 6f 6d | 2d 72 69 67 68 74 09 28 |;.: from|-right.(|
|000043b0| 20 6f 66 66 73 65 74 20 | 2d 2d 20 63 6f 6c 23 20 | offset |-- col# |
|000043c0| 29 09 23 63 6f 6c 75 6d | 6e 73 20 73 77 61 70 20 |).#colum|ns swap |
|000043d0| 2d 20 20 3b 0a 3a 20 63 | 6f 6c 73 2f 70 61 67 65 |- ;.: c|ols/page|
|000043e0| 09 28 20 2d 2d 20 63 6f | 6c 73 20 29 0a 09 23 63 |.( -- co|ls )..#c|
|000043f0| 6f 6c 75 6d 6e 73 20 20 | 72 6f 77 5f 6e 61 6d 65 |olumns |row_name|
|00004400| 5f 6c 65 6e 20 2d 20 6d | 65 6e 75 2d 63 6f 6c 75 |_len - m|enu-colu|
|00004410| 6d 6e 2d 77 69 64 74 68 | 20 2d 20 72 6f 77 5f 6f |mn-width| - row_o|
|00004420| 72 67 20 20 2d 20 63 6f | 6c 75 6d 6e 2d 77 69 64 |rg - co|lumn-wid|
|00004430| 74 68 20 2f 20 3b 0a 0a | 3a 20 72 6f 77 5f 6f 72 |th / ;..|: row_or|
|00004440| 67 2b 09 28 20 6e 20 2d | 2d 20 6e 27 20 29 09 09 |g+.( n -|- n' )..|
|00004450| 72 6f 77 5f 6f 72 67 20 | 2b 20 20 3b 0a 3a 20 72 |row_org |+ ;.: r|
|00004460| 6f 77 73 2f 70 61 67 65 | 09 28 20 2d 2d 20 6e 20 |ows/page|.( -- n |
|00004470| 29 09 09 35 20 66 72 6f | 6d 2d 62 6f 74 74 6f 6d |)..5 fro|m-bottom|
|00004480| 20 72 6f 77 5f 6f 72 67 | 20 2d 20 20 3b 0a 3a 20 | row_org| - ;.: |
|00004490| 63 6f 6c 75 6d 6e 2a 09 | 28 20 63 6f 6c 75 6d 6e |column*.|( column|
|000044a0| 23 20 2d 2d 20 70 6f 73 | 69 74 69 6f 6e 20 29 09 |# -- pos|ition ).|
|000044b0| 63 6f 6c 75 6d 6e 2d 77 | 69 64 74 68 20 2a 20 20 |column-w|idth * |
|000044c0| 3b 0a 3a 20 63 6f 6c 5f | 6f 72 67 2b 09 28 20 6f |;.: col_|org+.( o|
|000044d0| 66 66 73 65 74 20 2d 2d | 20 6e 20 29 0a 09 6d 65 |ffset --| n )..me|
|000044e0| 6e 75 2d 63 6f 6c 75 6d | 6e 2d 77 69 64 74 68 20 |nu-colum|n-width |
|000044f0| 20 63 6f 6c 73 2f 70 61 | 67 65 20 63 6f 6c 75 6d | cols/pa|ge colum|
|00004500| 6e 2a 20 2b 20 20 66 72 | 6f 6d 2d 72 69 67 68 74 |n* + fr|om-right|
|00004510| 20 20 2b 20 3b 0a 0a 5c | 20 63 6f 6e 73 74 61 6e | + ;..\| constan|
|00004520| 74 20 26 20 76 61 72 69 | 61 62 6c 65 20 64 65 63 |t & vari|able dec|
|00004530| 6c 61 72 61 74 69 6f 6e | 73 0a 0a 76 61 72 69 61 |laration|s..varia|
|00004540| 62 6c 65 20 6d 6f 64 65 | 5f 66 6c 61 67 09 5c 20 |ble mode|_flag.\ |
|00004550| 61 75 74 6f 20 63 61 6c | 63 75 6c 61 74 65 20 66 |auto cal|culate f|
|00004560| 6c 61 67 0a 76 61 72 69 | 61 62 6c 65 20 6f 72 64 |lag.vari|able ord|
|00004570| 65 72 5f 66 6c 61 67 09 | 5c 20 63 61 6c 63 75 6c |er_flag.|\ calcul|
|00004580| 61 74 69 6f 6e 20 6f 72 | 64 65 72 20 66 6c 61 67 |ation or|der flag|
|00004590| 0a 76 61 72 69 61 62 6c | 65 20 66 6f 72 6d 61 74 |.variabl|e format|
|000045a0| 5f 66 6c 61 67 09 5c 20 | 6e 75 6d 62 65 72 20 6f |_flag.\ |number o|
|000045b0| 75 74 70 75 74 20 66 6f | 72 6d 61 74 20 66 6c 61 |utput fo|rmat fla|
|000045c0| 67 0a 0a 76 61 72 69 61 | 62 6c 65 20 63 75 72 5f |g..varia|ble cur_|
|000045d0| 63 6f 6c 09 5c 20 74 6f | 70 20 6c 65 66 74 20 64 |col.\ to|p left d|
|000045e0| 69 73 70 6c 61 79 20 63 | 6f 6c 20 23 0a 76 61 72 |isplay c|ol #.var|
|000045f0| 69 61 62 6c 65 20 63 75 | 72 5f 72 6f 77 09 5c 20 |iable cu|r_row.\ |
|00004600| 74 6f 70 20 6c 65 66 74 | 20 64 69 73 70 6c 61 79 |top left| display|
|00004610| 20 72 6f 77 20 23 0a 76 | 61 72 69 61 62 6c 65 20 | row #.v|ariable |
|00004620| 63 6f 6c 5f 64 69 73 70 | 09 5c 20 63 6f 6c 20 64 |col_disp|.\ col d|
|00004630| 69 73 70 6c 61 63 65 6d | 65 6e 74 20 66 72 6f 6d |isplacem|ent from|
|00004640| 0a 09 09 09 5c 20 63 75 | 72 5f 63 6f 6c 20 6f 6e |....\ cu|r_col on|
|00004650| 20 64 69 73 70 6c 61 79 | 0a 76 61 72 69 61 62 6c | display|.variabl|
|00004660| 65 20 72 6f 77 5f 64 69 | 73 70 09 5c 20 72 6f 77 |e row_di|sp.\ row|
|00004670| 20 64 69 73 70 6c 61 63 | 65 6d 65 6e 74 20 66 72 | displac|ement fr|
|00004680| 6f 6d 0a 09 09 09 5c 20 | 63 75 72 5f 72 6f 77 20 |om....\ |cur_row |
|00004690| 6f 6e 20 64 69 73 70 6c | 61 79 0a 0a 0a 3a 20 63 |on displ|ay...: c|
|000046a0| 6f 6c 75 6d 6e 09 28 20 | 2d 2d 20 6e 20 29 09 63 |olumn.( |-- n ).c|
|000046b0| 75 72 5f 63 6f 6c 20 40 | 20 20 3b 0a 3a 20 72 6f |ur_col @| ;.: ro|
|000046c0| 77 09 09 28 20 2d 2d 20 | 6e 20 29 09 63 75 72 5f |w..( -- |n ).cur_|
|000046d0| 72 6f 77 20 40 20 20 3b | 0a 3a 20 63 6f 6c 2d 64 |row @ ;|.: col-d|
|000046e0| 69 73 70 09 28 20 2d 2d | 20 6e 20 29 09 63 6f 6c |isp.( --| n ).col|
|000046f0| 5f 64 69 73 70 20 40 20 | 20 3b 0a 3a 20 72 6f 77 |_disp @ | ;.: row|
|00004700| 2d 64 69 73 70 09 28 20 | 2d 2d 20 6e 20 29 09 72 |-disp.( |-- n ).r|
|00004710| 6f 77 5f 64 69 73 70 20 | 40 20 20 3b 0a 0a 5c 20 |ow_disp |@ ;..\ |
|00004720| 68 69 67 68 2d 6c 65 76 | 65 6c 20 61 72 72 61 79 |high-lev|el array|
|00004730| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 0a 0a 5c 20 | definit|ions..\ |
|00004740| 63 72 65 61 74 65 20 32 | 64 20 61 72 72 61 79 20 |create 2|d array |
|00004750| 64 65 70 74 68 20 62 79 | 74 65 73 20 64 65 65 70 |depth by|tes deep|
|00004760| 2c 20 2d 20 68 73 20 33 | 32 62 69 74 20 63 65 6c |, - hs 3|2bit cel|
|00004770| 6c 20 61 6c 6c 6f 63 61 | 74 69 6f 6e 0a 3a 20 20 |l alloca|tion.: |
|00004780| 61 72 72 61 79 09 5c 20 | 28 20 23 72 6f 77 73 20 |array.\ |( #rows |
|00004790| 23 63 6f 6c 73 20 64 65 | 70 74 68 20 2d 2d 20 29 |#cols de|pth -- )|
|000047a0| 20 20 20 20 20 20 20 20 | 63 6f 6d 70 69 6c 65 20 | |compile |
|000047b0| 74 69 6d 65 0a 09 09 5c | 20 28 20 72 6f 77 23 20 |time...\| ( row# |
|000047c0| 20 63 6f 6c 23 20 2d 2d | 20 65 6c 65 6d 65 6e 74 | col# --| element|
|000047d0| 2d 61 64 64 72 20 29 20 | 20 72 75 6e 20 74 69 6d |-addr ) | run tim|
|000047e0| 65 0a 09 63 72 65 61 74 | 65 09 61 6c 69 67 6e 65 |e..creat|e.aligne|
|000047f0| 64 20 32 64 75 70 20 73 | 77 61 70 20 20 2c 20 2c |d 2dup s|wap , ,|
|00004800| 20 20 2a 20 2a 20 20 64 | 75 70 20 68 65 72 65 0a | * * d|up here.|
|00004810| 09 09 73 77 61 70 20 65 | 72 61 73 65 20 20 61 6c |..swap e|rase al|
|00004820| 6c 6f 74 0a 09 64 6f 65 | 73 3e 09 64 75 70 20 40 |lot..doe|s>.dup @|
|00004830| 20 33 20 72 6f 6c 6c 20 | 2a 20 20 32 20 72 6f 6c | 3 roll |* 2 rol|
|00004840| 6c 20 2b 20 20 6f 76 65 | 72 0a 09 09 63 65 6c 6c |l + ove|r...cell|
|00004850| 2b 20 40 20 20 2a 20 20 | 2b 20 63 65 6c 6c 2b 20 |+ @ * |+ cell+ |
|00004860| 63 65 6c 6c 2b 20 3b 0a | 0a 5c 20 63 72 65 61 74 |cell+ ;.|.\ creat|
|00004870| 65 20 69 64 20 73 74 72 | 69 6e 67 20 61 72 72 61 |e id str|ing arra|
|00004880| 79 20 64 65 70 74 68 20 | 63 68 61 72 61 63 74 65 |y depth |characte|
|00004890| 72 73 20 64 65 65 70 0a | 3a 20 24 61 72 72 61 79 |rs deep.|: $array|
|000048a0| 09 5c 20 28 20 23 72 6f | 77 73 20 64 65 70 74 68 |.\ ( #ro|ws depth|
|000048b0| 20 2d 2d 20 29 20 20 20 | 20 20 20 20 20 63 6f 6d | -- ) | com|
|000048c0| 70 69 6c 65 20 74 69 6d | 65 0a 09 09 5c 20 28 20 |pile tim|e...\ ( |
|000048d0| 72 6f 77 23 20 20 2d 2d | 20 73 74 72 69 6e 67 2d |row# --| string-|
|000048e0| 61 64 64 72 20 29 20 20 | 20 72 75 6e 20 74 69 6d |addr ) | run tim|
|000048f0| 65 0a 09 63 72 65 61 74 | 65 09 64 75 70 20 2c 20 |e..creat|e.dup , |
|00004900| 20 2a 20 20 64 75 70 20 | 68 65 72 65 20 20 73 77 | * dup |here sw|
|00004910| 61 70 20 65 72 61 73 65 | 20 20 61 6c 6c 6f 74 0a |ap erase| allot.|
|00004920| 09 64 6f 65 73 3e 09 64 | 75 70 20 40 20 72 6f 74 |.does>.d|up @ rot|
|00004930| 20 2a 20 20 2b 20 63 65 | 6c 6c 2b 20 20 3b 0a 0a | * + ce|ll+ ;..|
|00004940| 5c 20 64 65 66 69 6e 65 | 20 61 20 32 64 20 61 72 |\ define| a 2d ar|
|00004950| 72 61 79 20 66 6f 72 20 | 73 70 72 65 61 64 73 68 |ray for |spreadsh|
|00004960| 65 65 74 20 64 61 74 61 | 20 73 74 72 75 63 74 75 |eet data| structu|
|00004970| 72 65 0a 5c 20 65 61 63 | 68 20 73 70 63 65 6c 6c |re.\ eac|h spcell|
|00004980| 20 63 6f 6e 74 61 69 6e | 73 20 32 20 63 65 6c 6c | contain|s 2 cell|
|00004990| 73 0a 5c 20 31 20 66 6f | 72 20 66 6f 72 6d 75 6c |s.\ 1 fo|r formul|
|000049a0| 61 20 65 78 65 63 75 74 | 69 6f 6e 20 61 64 64 72 |a execut|ion addr|
|000049b0| 65 73 73 20 28 69 66 20 | 61 6e 79 29 0a 5c 20 31 |ess (if |any).\ 1|
|000049c0| 20 66 6f 72 20 64 6f 75 | 62 6c 65 2d 6e 75 6d 62 | for dou|ble-numb|
|000049d0| 65 72 20 76 61 6c 75 65 | 20 73 74 6f 72 61 67 65 |er value| storage|
|000049e0| 2e 0a 0a 72 6f 77 5f 6d | 61 78 20 63 6f 6c 5f 6d |...row_m|ax col_m|
|000049f0| 61 78 20 20 32 20 63 65 | 6c 6c 73 20 61 72 72 61 |ax 2 ce|lls arra|
|00004a00| 79 20 73 70 63 65 6c 6c | 73 0a 0a 09 5c 20 64 65 |y spcell|s...\ de|
|00004a10| 66 69 6e 65 20 61 20 73 | 74 72 69 6e 67 20 61 72 |fine a s|tring ar|
|00004a20| 72 61 79 20 66 6f 72 20 | 68 6f 6c 64 69 6e 67 20 |ray for |holding |
|00004a30| 74 68 65 20 72 6f 77 20 | 6e 61 6d 65 73 0a 72 6f |the row |names.ro|
|00004a40| 77 5f 6d 61 78 20 72 6f | 77 5f 6e 61 6d 65 5f 6c |w_max ro|w_name_l|
|00004a50| 65 6e 20 32 20 2b 20 24 | 61 72 72 61 79 20 72 6f |en 2 + $|array ro|
|00004a60| 77 5f 6e 61 6d 65 73 0a | 0a 09 5c 20 64 65 66 69 |w_names.|..\ defi|
|00004a70| 6e 65 20 61 20 73 74 72 | 69 6e 67 20 61 72 72 61 |ne a str|ing arra|
|00004a80| 79 20 66 6f 72 20 68 6f | 6c 64 69 6e 67 20 74 68 |y for ho|lding th|
|00004a90| 65 20 63 6f 6c 20 6e 61 | 6d 65 73 0a 63 6f 6c 5f |e col na|mes.col_|
|00004aa0| 6d 61 78 20 63 6f 6c 5f | 6e 61 6d 65 5f 6c 65 6e |max col_|name_len|
|00004ab0| 20 32 20 2b 20 24 61 72 | 72 61 79 20 63 6f 6c 5f | 2 + $ar|ray col_|
|00004ac0| 6e 61 6d 65 73 0a 0a 09 | 5c 20 6d 69 73 63 20 77 |names...|\ misc w|
|00004ad0| 6f 72 64 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 0a |ord defi|nitions.|
|00004ae0| 0a 3a 20 64 23 69 6e 09 | 5c 20 69 6e 70 75 74 20 |.: d#in.|\ input |
|00004af0| 64 6f 75 62 6c 65 20 23 | 20 66 72 6f 6d 20 6b 65 |double #| from ke|
|00004b00| 79 62 6f 61 72 64 20 28 | 20 2d 2d 20 64 29 0a 09 |yboard (| -- d)..|
|00004b10| 62 65 67 69 6e 09 70 61 | 64 20 31 2b 20 32 30 20 |begin.pa|d 1+ 20 |
|00004b20| 65 78 70 65 63 74 20 20 | 73 70 61 6e 20 40 20 70 |expect |span @ p|
|00004b30| 61 64 20 63 21 0a 09 09 | 70 61 64 20 6e 75 6d 62 |ad c!...|pad numb|
|00004b40| 65 72 3f 0a 09 75 6e 74 | 69 6c 20 3b 0a 0a 3a 20 |er?..unt|il ;..: |
|00004b50| 20 23 69 6e 09 64 23 69 | 6e 20 64 72 6f 70 20 3b | #in.d#i|n drop ;|
|00004b60| 09 09 09 5c 20 69 6e 70 | 75 74 20 73 69 6e 67 6c |...\ inp|ut singl|
|00004b70| 65 20 23 20 66 72 6f 6d | 20 6b 65 79 62 6f 61 72 |e # from| keyboar|
|00004b80| 64 0a 09 09 09 09 09 5c | 20 28 20 2d 2d 20 6e 29 |d......\| ( -- n)|
|00004b90| 0a 0a 3a 20 70 6f 73 31 | 09 09 09 09 09 5c 20 70 |..: pos1|.....\ p|
|00004ba0| 6f 73 69 74 69 6f 6e 20 | 63 75 72 73 6f 72 20 6f |osition |cursor o|
|00004bb0| 6e 20 63 6d 64 20 6c 69 | 6e 65 0a 09 30 20 20 33 |n cmd li|ne..0 3|
|00004bc0| 20 66 72 6f 6d 2d 62 6f | 74 74 6f 6d 20 20 32 64 | from-bo|ttom 2d|
|00004bd0| 75 70 20 61 74 2d 78 79 | 20 20 30 20 62 6c 6f 74 |up at-xy| 0 blot|
|00004be0| 20 20 61 74 2d 78 79 20 | 20 3b 0a 0a 3a 20 70 6f | at-xy | ;..: po|
|00004bf0| 73 32 09 09 09 09 09 5c | 20 70 6f 73 69 74 69 6f |s2.....\| positio|
|00004c00| 6e 20 63 75 72 73 6f 72 | 20 6f 6e 20 63 6d 64 20 |n cursor| on cmd |
|00004c10| 6c 69 6e 65 0a 09 30 20 | 20 32 20 66 72 6f 6d 2d |line..0 | 2 from-|
|00004c20| 62 6f 74 74 6f 6d 20 20 | 32 64 75 70 20 61 74 2d |bottom |2dup at-|
|00004c30| 78 79 20 20 30 20 62 6c | 6f 74 20 20 61 74 2d 78 |xy 0 bl|ot at-x|
|00004c40| 79 20 20 3b 0a 0a 3a 20 | 79 2f 6e 20 20 20 20 20 |y ;..: |y/n |
|00004c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 09 | | .|
|00004c60| 09 5c 20 28 20 2d 2d 20 | 74 20 69 66 20 79 65 73 |.\ ( -- |t if yes|
|00004c70| 20 66 20 69 66 20 6e 6f | 20 29 0a 09 70 6f 73 31 | f if no| )..pos1|
|00004c80| 20 2e 22 20 61 72 65 20 | 79 6f 75 20 73 75 72 65 | ." are |you sure|
|00004c90| 20 3f 20 22 09 5c 20 64 | 69 73 70 6c 61 79 20 6d | ? ".\ d|isplay m|
|00004ca0| 73 67 0a 09 73 6b 65 79 | 20 75 70 63 20 5b 63 68 |sg..skey| upc [ch|
|00004cb0| 61 72 5d 20 59 20 3d 20 | 3b 09 09 5c 20 72 65 74 |ar] Y = |;..\ ret|
|00004cc0| 75 72 6e 20 66 6c 61 67 | 0a 0a 3a 20 6d 61 72 6b |urn flag|..: mark|
|00004cd0| 5f 63 65 6c 6c 09 09 09 | 09 5c 20 6d 61 72 6b 20 |_cell...|.\ mark |
|00004ce0| 63 65 6c 6c 20 6f 6e 20 | 64 69 73 70 6c 61 79 0a |cell on |display.|
|00004cf0| 09 32 64 75 70 20 61 74 | 2d 78 79 20 20 5b 63 68 |.2dup at|-xy [ch|
|00004d00| 61 72 5d 20 3c 20 65 6d | 69 74 09 09 5c 20 28 20 |ar] < em|it..\ ( |
|00004d10| 72 6f 77 23 20 63 6f 6c | 23 20 2d 2d 20 29 0a 09 |row# col|# -- )..|
|00004d20| 73 77 61 70 20 63 6f 6c | 75 6d 6e 2d 77 69 64 74 |swap col|umn-widt|
|00004d30| 68 20 2b 20 32 20 2d 20 | 73 77 61 70 20 61 74 2d |h + 2 - |swap at-|
|00004d40| 78 79 0a 09 5b 63 68 61 | 72 5d 20 3e 20 65 6d 69 |xy..[cha|r] > emi|
|00004d50| 74 20 3b 09 09 09 5c 20 | 6d 61 72 6b 20 6c 69 6b |t ;...\ |mark lik|
|00004d60| 65 20 22 3c 20 20 20 20 | 20 20 3e 22 0a 0a 3a 20 |e "< | >"..: |
|00004d70| 75 6e 6d 61 72 6b 5f 63 | 65 6c 6c 09 09 5c 20 75 |unmark_c|ell..\ u|
|00004d80| 6e 6d 61 72 6b 20 63 65 | 6c 6c 20 6f 6e 20 64 69 |nmark ce|ll on di|
|00004d90| 73 70 6c 61 79 0a 09 32 | 64 75 70 20 61 74 2d 78 |splay..2|dup at-x|
|00004da0| 79 20 20 20 73 70 61 63 | 65 09 09 09 5c 20 28 20 |y spac|e...\ ( |
|00004db0| 72 6f 77 23 20 63 6f 6c | 23 20 2d 2d 20 29 0a 09 |row# col|# -- )..|
|00004dc0| 73 77 61 70 20 63 6f 6c | 75 6d 6e 2d 77 69 64 74 |swap col|umn-widt|
|00004dd0| 68 20 2b 20 32 20 2d 20 | 73 77 61 70 20 61 74 2d |h + 2 - |swap at-|
|00004de0| 78 79 20 20 73 70 61 63 | 65 20 3b 09 5c 20 72 65 |xy spac|e ;.\ re|
|00004df0| 6d 6f 76 65 20 20 20 20 | 22 3c 20 20 20 20 20 20 |move |"< |
|00004e00| 3e 22 0a 0a 3a 20 63 65 | 6c 6c 5f 70 74 72 09 09 |>"..: ce|ll_ptr..|
|00004e10| 5c 20 72 65 74 75 72 6e | 73 20 61 64 64 72 65 73 |\ return|s addres|
|00004e20| 73 20 6f 66 20 63 65 6c | 6c 20 70 6f 69 6e 74 65 |s of cel|l pointe|
|00004e30| 64 0a 09 72 6f 77 20 72 | 6f 77 2d 64 69 73 70 20 |d..row r|ow-disp |
|00004e40| 2b 09 09 09 5c 20 61 74 | 2d 78 79 20 62 79 20 3c |+...\ at|-xy by <|
|00004e50| 20 20 3e 20 64 69 73 70 | 6c 61 79 20 6d 61 72 6b | > disp|lay mark|
|00004e60| 65 72 0a 09 63 6f 6c 75 | 6d 6e 20 63 6f 6c 2d 64 |er..colu|mn col-d|
|00004e70| 69 73 70 20 2b 09 09 5c | 20 28 20 2d 2d 20 63 65 |isp +..\| ( -- ce|
|00004e80| 6c 6c 20 61 64 64 72 29 | 0a 09 73 70 63 65 6c 6c |ll addr)|..spcell|
|00004e90| 73 20 20 3b 0a 0a 3a 20 | 63 61 6c 5f 63 65 6c 6c |s ;..: |cal_cell|
|00004ea0| 5f 64 69 73 70 5f 6c 6f | 63 20 20 20 20 20 09 09 |_disp_lo|c ..|
|00004eb0| 5c 20 63 61 6c 63 75 6c | 61 74 69 6f 6e 20 6c 6f |\ calcul|ation lo|
|00004ec0| 63 61 74 69 6f 6e 20 6f | 6e 20 64 69 73 70 6c 61 |cation o|n displa|
|00004ed0| 79 0a 09 63 6f 6c 2d 64 | 69 73 70 20 63 6f 6c 75 |y..col-d|isp colu|
|00004ee0| 6d 6e 2a 20 63 6f 6c 5f | 6f 72 67 2b 09 5c 20 6f |mn* col_|org+.\ o|
|00004ef0| 66 20 63 65 6c 6c 20 64 | 69 73 70 6c 61 79 20 6d |f cell d|isplay m|
|00004f00| 61 72 6b 65 72 73 0a 09 | 72 6f 77 2d 64 69 73 70 |arkers..|row-disp|
|00004f10| 20 20 72 6f 77 5f 6f 72 | 67 2b 20 20 3b 09 09 5c | row_or|g+ ;..\|
|00004f20| 20 28 20 2d 2d 20 63 6f | 6c 20 72 6f 77 20 29 0a | ( -- co|l row ).|
|00004f30| 0a 3a 20 70 6c 61 63 65 | 5f 63 65 6c 6c 5f 6d 61 |.: place|_cell_ma|
|00004f40| 72 6b 65 72 09 09 09 5c | 20 70 6c 61 63 65 20 63 |rker...\| place c|
|00004f50| 65 6c 6c 20 6d 61 72 6b | 65 72 20 61 72 6f 75 6e |ell mark|er aroun|
|00004f60| 64 20 63 65 6c 6c 0a 09 | 63 61 6c 5f 63 65 6c 6c |d cell..|cal_cell|
|00004f70| 5f 64 69 73 70 5f 6c 6f | 63 20 20 6d 61 72 6b 5f |_disp_lo|c mark_|
|00004f80| 63 65 6c 6c 20 20 3b 0a | 0a 3a 20 65 72 61 73 65 |cell ;.|.: erase|
|00004f90| 5f 63 65 6c 6c 5f 6d 61 | 72 6b 65 72 09 09 09 5c |_cell_ma|rker...\|
|00004fa0| 20 65 72 61 73 65 20 63 | 65 6c 6c 20 6d 61 72 6b | erase c|ell mark|
|00004fb0| 65 72 20 61 72 6f 75 6e | 64 20 63 65 6c 6c 0a 09 |er aroun|d cell..|
|00004fc0| 63 61 6c 5f 63 65 6c 6c | 5f 64 69 73 70 5f 6c 6f |cal_cell|_disp_lo|
|00004fd0| 63 20 20 75 6e 6d 61 72 | 6b 5f 63 65 6c 6c 20 20 |c unmar|k_cell |
|00004fe0| 3b 0a 0a 3a 20 28 66 64 | 2e 29 0a 09 74 75 63 6b |;..: (fd|.)..tuck|
|00004ff0| 20 64 61 62 73 09 09 09 | 5c 20 64 6f 6c 6c 61 72 | dabs...|\ dollar|
|00005000| 2f 63 65 6e 74 73 20 66 | 6f 72 6d 61 74 74 69 6e |/cents f|ormattin|
|00005010| 67 20 77 6f 72 64 0a 09 | 3c 23 20 23 20 23 20 5b |g word..|<# # # [|
|00005020| 63 68 61 72 5d 20 2e 20 | 68 6f 6c 64 20 23 73 20 |char] . |hold #s |
|00005030| 72 6f 74 09 5c 20 66 6f | 72 6d 61 74 73 20 64 6f |rot.\ fo|rmats do|
|00005040| 75 62 6c 65 20 23 20 6f | 6e 20 74 6f 73 0a 09 73 |uble # o|n tos..s|
|00005050| 69 67 6e 20 20 5b 63 68 | 61 72 5d 20 24 20 68 6f |ign [ch|ar] $ ho|
|00005060| 6c 64 20 23 3e 20 3b 09 | 5c 20 70 72 69 6e 74 73 |ld #> ;.|\ prints|
|00005070| 20 6c 65 61 64 69 6e 67 | 20 24 0a 0a 3a 20 66 64 | leading| $..: fd|
|00005080| 2e 72 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.r | |
|00005090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000050a0| 20 20 20 20 5c 20 28 20 | 64 20 77 69 64 74 68 20 | \ ( |d width |
|000050b0| 2d 2d 20 29 0a 09 3e 72 | 20 20 28 66 64 2e 29 20 |-- )..>r| (fd.) |
|000050c0| 20 72 3e 09 09 09 5c 20 | 66 6f 72 6d 61 74 20 64 | r>...\ |format d|
|000050d0| 23 20 69 6e 20 64 6f 6c | 6c 61 72 73 2f 63 65 6e |# in dol|lars/cen|
|000050e0| 74 73 20 69 6e 0a 09 6f | 76 65 72 20 2d 20 73 70 |ts in..o|ver - sp|
|000050f0| 61 63 65 73 20 74 79 70 | 65 20 20 3b 09 09 5c 20 |aces typ|e ;..\ |
|00005100| 72 69 67 68 74 2d 6a 75 | 73 74 69 66 69 65 64 20 |right-ju|stified |
|00005110| 66 69 65 6c 64 20 77 69 | 64 74 68 20 77 0a 20 20 |field wi|dth w. |
|00005120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005130| 20 20 20 20 20 20 20 0a | 0a 3a 20 66 6f 72 6d 61 | .|.: forma|
|00005140| 74 23 09 09 09 09 5c 20 | 66 6f 72 6d 61 74 20 64 |t#....\ |format d|
|00005150| 6f 75 62 6c 65 20 6e 75 | 6d 62 65 72 20 69 6e 20 |ouble nu|mber in |
|00005160| 6f 6e 65 20 6f 66 0a 09 | 66 6f 72 6d 61 74 5f 66 |one of..|format_f|
|00005170| 6c 61 67 20 40 09 09 09 | 5c 20 74 77 6f 20 66 6f |lag @...|\ two fo|
|00005180| 72 6d 61 74 73 0a 09 69 | 66 20 20 20 20 31 30 20 |rmats..i|f 10 |
|00005190| 66 64 2e 72 09 09 09 5c | 20 64 6f 6c 6c 61 72 73 |fd.r...\| dollars|
|000051a0| 2f 63 65 6e 74 73 0a 09 | 65 6c 73 65 20 20 31 30 |/cents..|else 10|
|000051b0| 20 20 64 2e 72 09 09 09 | 5c 20 69 6e 74 65 67 65 | d.r...|\ intege|
|000051c0| 72 0a 09 74 68 65 6e 20 | 20 3b 0a 0a 5c 20 20 64 |r..then | ;..\ d|
|000051d0| 69 73 70 6c 61 79 20 77 | 6f 72 64 20 64 65 66 69 |isplay w|ord defi|
|000051e0| 6e 69 74 69 6f 6e 73 0a | 0a 3a 20 64 69 73 5f 64 |nitions.|.: dis_d|
|000051f0| 61 74 61 09 09 09 09 5c | 20 64 69 73 70 6c 61 79 |ata....\| display|
|00005200| 20 61 6c 6c 20 63 65 6c | 6c 20 64 61 74 61 0a 09 | all cel|l data..|
|00005210| 63 6f 6c 75 6d 6e 20 63 | 6f 6c 73 2f 70 61 67 65 |column c|ols/page|
|00005220| 20 62 6f 75 6e 64 73 09 | 09 09 5c 20 43 6f 6c 75 | bounds.|..\ Colu|
|00005230| 6d 6e 20 62 6f 75 6e 64 | 73 0a 09 64 6f 09 69 20 |mn bound|s..do.i |
|00005240| 63 6f 6c 5f 6d 61 78 20 | 3d 20 3f 6c 65 61 76 65 |col_max |= ?leave|
|00005250| 09 09 5c 20 69 66 20 70 | 61 73 74 20 6c 61 73 74 |..\ if p|ast last|
|00005260| 20 70 6f 73 73 69 62 6c | 65 20 63 6f 6c 75 6d 6e | possibl|e column|
|00005270| 0a 09 09 72 6f 77 20 72 | 6f 77 73 2f 70 61 67 65 |...row r|ows/page|
|00005280| 20 62 6f 75 6e 64 73 09 | 09 5c 20 52 6f 77 20 62 | bounds.|.\ Row b|
|00005290| 6f 75 6e 64 73 0a 09 09 | 64 6f 09 69 20 72 6f 77 |ounds...|do.i row|
|000052a0| 5f 6d 61 78 20 3d 20 3f | 6c 65 61 76 65 09 5c 20 |_max = ?|leave.\ |
|000052b0| 69 66 20 70 61 73 74 20 | 6c 61 73 74 20 70 6f 73 |if past |last pos|
|000052c0| 73 69 62 6c 65 20 72 6f | 77 0a 09 09 09 6a 20 63 |sible ro|w....j c|
|000052d0| 6f 6c 75 6d 6e 20 2d 20 | 63 6f 6c 75 6d 6e 2a 20 |olumn - |column* |
|000052e0| 63 6f 6c 5f 6f 72 67 2b | 20 31 2b 0a 09 09 09 69 |col_org+| 1+....i|
|000052f0| 20 72 6f 77 20 2d 20 20 | 72 6f 77 5f 6f 72 67 2b | row - |row_org+|
|00005300| 20 61 74 2d 78 79 0a 09 | 09 09 69 20 6a 20 73 70 | at-xy..|..i j sp|
|00005310| 63 65 6c 6c 73 20 63 65 | 6c 6c 2b 20 40 20 73 3e |cells ce|ll+ @ s>|
|00005320| 64 20 66 6f 72 6d 61 74 | 23 0a 09 09 6c 6f 6f 70 |d format|#...loop|
|00005330| 09 09 09 09 5c 20 6c 6f | 6f 70 20 66 6f 72 20 61 |....\ lo|op for a|
|00005340| 6c 6c 20 64 61 74 61 20 | 64 69 73 70 6c 61 79 65 |ll data |displaye|
|00005350| 64 0a 09 6c 6f 6f 70 20 | 3b 0a 0a 5c 20 64 69 73 |d..loop |;..\ dis|
|00005360| 70 6c 61 79 20 73 70 72 | 65 61 64 73 68 65 65 74 |play spr|eadsheet|
|00005370| 20 62 6f 72 64 65 72 73 | 20 6f 6e 20 74 68 65 20 | borders| on the |
|00005380| 73 63 72 65 65 6e 0a 0a | 3a 20 64 69 73 5f 62 6f |screen..|: dis_bo|
|00005390| 72 64 65 72 09 09 09 09 | 09 5c 20 64 69 73 70 6c |rder....|.\ displ|
|000053a0| 61 79 20 73 70 72 65 61 | 64 73 68 65 65 74 20 62 |ay sprea|dsheet b|
|000053b0| 6f 72 64 65 72 73 0a 09 | 72 6f 77 73 2f 70 61 67 |orders..|rows/pag|
|000053c0| 65 20 30 0a 09 64 6f 09 | 2d 31 20 63 6f 6c 5f 6f |e 0..do.|-1 col_o|
|000053d0| 72 67 2b 20 69 20 72 6f | 77 5f 6f 72 67 2b 20 61 |rg+ i ro|w_org+ a|
|000053e0| 74 2d 78 79 20 20 63 6f | 6c 73 2f 70 61 67 65 20 |t-xy co|ls/page |
|000053f0| 30 0a 09 09 64 6f 09 5b | 63 68 61 72 5d 20 7c 20 |0...do.[|char] | |
|00005400| 65 6d 69 74 20 20 63 6f | 6c 75 6d 6e 2d 77 69 64 |emit co|lumn-wid|
|00005410| 74 68 20 31 2d 20 73 70 | 61 63 65 73 0a 09 09 6c |th 1- sp|aces...l|
|00005420| 6f 6f 70 09 5b 63 68 61 | 72 5d 20 7c 20 65 6d 69 |oop.[cha|r] | emi|
|00005430| 74 0a 09 6c 6f 6f 70 0a | 09 30 20 20 2d 31 20 72 |t..loop.|.0 -1 r|
|00005440| 6f 77 5f 6f 72 67 20 2b | 20 61 74 2d 78 79 09 23 |ow_org +| at-xy.#|
|00005450| 63 6f 6c 75 6d 6e 73 20 | 30 20 20 3f 64 6f 20 20 |columns |0 ?do |
|00005460| 5b 63 68 61 72 5d 20 2d | 20 65 6d 69 74 20 20 6c |[char] -| emit l|
|00005470| 6f 6f 70 0a 09 30 20 72 | 6f 77 73 2f 70 61 67 65 |oop..0 r|ows/page|
|00005480| 20 72 6f 77 5f 6f 72 67 | 2b 20 61 74 2d 78 79 20 | row_org|+ at-xy |
|00005490| 23 63 6f 6c 75 6d 6e 73 | 20 30 20 20 3f 64 6f 20 |#columns| 0 ?do |
|000054a0| 20 5b 63 68 61 72 5d 20 | 2d 20 65 6d 69 74 20 20 | [char] |- emit |
|000054b0| 6c 6f 6f 70 20 20 3b 0a | 0a 5c 20 64 69 73 70 6c |loop ;.|.\ displ|
|000054c0| 61 79 20 73 70 72 65 61 | 64 73 68 65 65 74 20 6d |ay sprea|dsheet m|
|000054d0| 65 6e 75 20 6f 66 20 6f | 70 74 69 6f 6e 73 20 6f |enu of o|ptions o|
|000054e0| 6e 20 72 69 67 68 74 20 | 73 69 64 65 20 6f 66 20 |n right |side of |
|000054f0| 64 69 73 70 6c 61 79 0a | 0a 3a 20 6e 65 78 74 2d |display.|.: next-|
|00005500| 72 6f 77 09 28 20 63 6f | 6c 20 72 6f 77 20 2d 2d |row.( co|l row --|
|00005510| 20 63 6f 6c 20 72 6f 77 | 2b 31 20 29 09 32 64 75 | col row|+1 ).2du|
|00005520| 70 20 61 74 2d 78 79 20 | 20 31 2b 20 3b 0a 3a 20 |p at-xy | 1+ ;.: |
|00005530| 64 69 73 5f 6d 65 6e 75 | 0a 09 6d 65 6e 75 2d 63 |dis_menu|..menu-c|
|00005540| 6f 6c 75 6d 6e 2d 77 69 | 64 74 68 20 66 72 6f 6d |olumn-wi|dth from|
|00005550| 2d 72 69 67 68 74 20 20 | 30 20 72 6f 77 5f 6f 72 |-right |0 row_or|
|00005560| 67 2b 0a 09 6e 65 78 74 | 2d 72 6f 77 20 2e 22 20 |g+..next|-row ." |
|00005570| 6d 65 6e 75 3a 22 0a 09 | 6e 65 78 74 2d 72 6f 77 |menu:"..|next-row|
|00005580| 20 2e 22 20 43 29 6f 6c | 22 20 20 20 20 6e 65 78 | ." C)ol|" nex|
|00005590| 74 2d 72 6f 77 20 2e 22 | 20 41 29 67 61 69 6e 22 |t-row ."| A)gain"|
|000055a0| 0a 09 6e 65 78 74 2d 72 | 6f 77 20 2e 22 20 44 29 |..next-r|ow ." D)|
|000055b0| 61 74 61 22 20 20 20 6e | 65 78 74 2d 72 6f 77 20 |ata" n|ext-row |
|000055c0| 2e 22 20 45 29 71 75 22 | 0a 09 6e 65 78 74 2d 72 |." E)qu"|..next-r|
|000055d0| 6f 77 20 2e 22 20 46 29 | 6f 72 6d 22 20 20 20 6e |ow ." F)|orm" n|
|000055e0| 65 78 74 2d 72 6f 77 20 | 2e 22 20 47 29 6f 74 6f |ext-row |." G)oto|
|000055f0| 22 0a 09 6e 65 78 74 2d | 72 6f 77 20 2e 22 20 4d |"..next-|row ." M|
|00005600| 29 6f 64 65 22 20 20 20 | 6e 65 78 74 2d 72 6f 77 |)ode" |next-row|
|00005610| 20 2e 22 20 4e 29 65 77 | 22 0a 09 6e 65 78 74 2d | ." N)ew|"..next-|
|00005620| 72 6f 77 20 2e 22 20 4f | 29 72 64 65 72 22 20 20 |row ." O|)rder" |
|00005630| 6e 65 78 74 2d 72 6f 77 | 20 2e 22 20 50 29 65 72 |next-row| ." P)er|
|00005640| 66 22 0a 09 6e 65 78 74 | 2d 72 6f 77 20 2e 22 20 |f"..next|-row ." |
|00005650| 51 29 75 69 74 22 20 20 | 20 6e 65 78 74 2d 72 6f |Q)uit" | next-ro|
|00005660| 77 20 2e 22 20 52 29 6f | 77 22 0a 20 20 20 20 20 |w ." R)o|w". |
|00005670| 20 20 20 6e 65 78 74 2d | 72 6f 77 20 2e 22 20 53 | next-|row ." S|
|00005680| 29 70 72 65 61 64 22 0a | 09 32 64 72 6f 70 20 3b |)pread".|.2drop ;|
|00005690| 0a 0a 3a 20 64 69 73 5f | 72 6f 77 5f 6c 61 62 65 |..: dis_|row_labe|
|000056a0| 6c 73 09 09 09 09 5c 20 | 6c 61 62 65 6c 20 74 68 |ls....\ |label th|
|000056b0| 65 20 72 6f 77 73 20 6f | 6e 20 64 69 73 70 6c 61 |e rows o|n displa|
|000056c0| 79 0a 09 72 6f 77 20 72 | 6f 77 73 2f 70 61 67 65 |y..row r|ows/page|
|000056d0| 20 62 6f 75 6e 64 73 09 | 09 09 5c 20 6c 61 62 65 | bounds.|..\ labe|
|000056e0| 6c 20 66 72 6f 6d 20 63 | 75 72 5f 72 6f 77 0a 09 |l from c|ur_row..|
|000056f0| 64 6f 09 69 20 72 6f 77 | 5f 6d 61 78 20 3d 20 3f |do.i row|_max = ?|
|00005700| 6c 65 61 76 65 09 09 5c | 20 66 6f 72 20 72 6f 77 |leave..\| for row|
|00005710| 73 2f 70 61 67 65 20 6c | 69 6e 65 73 20 6f 72 20 |s/page l|ines or |
|00005720| 75 6e 74 69 6c 20 72 6f | 77 5f 6d 61 78 0a 09 09 |until ro|w_max...|
|00005730| 2d 33 20 63 6f 6c 5f 6f | 72 67 2b 20 69 20 72 6f |-3 col_o|rg+ i ro|
|00005740| 77 20 2d 20 72 6f 77 5f | 6f 72 67 2b 20 61 74 2d |w - row_|org+ at-|
|00005750| 78 79 09 5c 20 66 6f 72 | 6d 61 74 20 69 6e 20 64 |xy.\ for|mat in d|
|00005760| 65 63 69 6d 61 6c 20 23 | 73 0a 09 09 69 20 32 20 |ecimal #|s...i 2 |
|00005770| 2e 72 0a 09 6c 6f 6f 70 | 20 20 3b 0a 0a 3a 20 64 |.r..loop| ;..: d|
|00005780| 69 73 5f 72 6f 77 5f 6e | 61 6d 65 73 09 09 09 09 |is_row_n|ames....|
|00005790| 09 5c 20 6c 61 62 65 6c | 20 72 6f 77 20 6e 61 6d |.\ label| row nam|
|000057a0| 65 73 20 66 72 6f 6d 20 | 61 72 72 61 79 0a 09 72 |es from |array..r|
|000057b0| 6f 77 20 72 6f 77 73 2f | 70 61 67 65 20 62 6f 75 |ow rows/|page bou|
|000057c0| 6e 64 73 09 09 09 5c 20 | 6f 6e 6c 79 20 73 68 6f |nds...\ |only sho|
|000057d0| 77 20 6e 61 6d 65 73 20 | 74 68 61 74 20 66 69 74 |w names |that fit|
|000057e0| 20 6f 6e 0a 09 64 6f 09 | 69 20 72 6f 77 5f 6d 61 | on..do.|i row_ma|
|000057f0| 78 20 3d 20 3f 6c 65 61 | 76 65 09 09 5c 20 64 69 |x = ?lea|ve..\ di|
|00005800| 73 70 6c 61 79 0a 09 09 | 30 20 69 20 72 6f 77 20 |splay...|0 i row |
|00005810| 2d 20 72 6f 77 5f 6f 72 | 67 2b 20 61 74 2d 78 79 |- row_or|g+ at-xy|
|00005820| 09 09 5c 20 70 6c 61 63 | 65 20 63 75 72 73 6f 72 |..\ plac|e cursor|
|00005830| 20 61 74 20 6c 6f 63 61 | 74 69 6f 6e 0a 09 09 69 | at loca|tion...i|
|00005840| 20 72 6f 77 5f 6e 61 6d | 65 73 09 09 09 5c 20 74 | row_nam|es...\ t|
|00005850| 79 70 65 20 72 65 71 75 | 69 72 65 64 20 63 68 61 |ype requ|ired cha|
|00005860| 72 61 63 74 65 72 73 0a | 09 09 63 6f 75 6e 74 20 |racters.|..count |
|00005870| 64 75 70 20 3e 72 20 74 | 79 70 65 20 20 72 6f 77 |dup >r t|ype row|
|00005880| 5f 6e 61 6d 65 5f 6c 65 | 6e 20 72 3e 20 2d 20 73 |_name_le|n r> - s|
|00005890| 70 61 63 65 73 0a 09 6c | 6f 6f 70 20 3b 0a 0a 3a |paces..l|oop ;..:|
|000058a0| 20 64 69 73 5f 63 6f 6c | 5f 6c 61 62 65 6c 73 09 | dis_col|_labels.|
|000058b0| 09 09 09 5c 20 6c 61 62 | 65 6c 20 74 68 65 20 63 |...\ lab|el the c|
|000058c0| 6f 6c 75 6d 6e 73 20 6f | 6e 20 64 69 73 70 6c 61 |olumns o|n displa|
|000058d0| 79 0a 09 63 6f 6c 75 6d | 6e 20 63 6f 6c 73 2f 70 |y..colum|n cols/p|
|000058e0| 61 67 65 20 62 6f 75 6e | 64 73 09 09 09 5c 20 6c |age boun|ds...\ l|
|000058f0| 61 62 65 6c 20 66 72 6f | 6d 20 63 75 72 5f 63 6f |abel fro|m cur_co|
|00005900| 6c 0a 09 64 6f 09 69 20 | 63 6f 6c 5f 6d 61 78 20 |l..do.i |col_max |
|00005910| 3d 20 3f 6c 65 61 76 65 | 09 09 5c 20 66 6f 72 20 |= ?leave|..\ for |
|00005920| 63 6f 6c 73 2f 70 61 67 | 65 20 63 6f 6c 73 20 20 |cols/pag|e cols |
|00005930| 20 6f 72 20 75 6e 74 69 | 6c 20 63 6f 6c 5f 6d 61 | or unti|l col_ma|
|00005940| 78 0a 09 09 09 09 09 09 | 5c 20 66 6f 72 6d 61 74 |x.......|\ format|
|00005950| 20 69 6e 20 61 6c 70 68 | 61 62 65 74 69 63 20 63 | in alph|abetic c|
|00005960| 68 61 72 73 0a 09 09 69 | 20 63 6f 6c 75 6d 6e 20 |hars...i| column |
|00005970| 2d 20 63 6f 6c 75 6d 6e | 2a 20 20 63 6f 6c 5f 6f |- column|* col_o|
|00005980| 72 67 2b 20 63 6f 6c 75 | 6d 6e 2d 77 69 64 74 68 |rg+ colu|mn-width|
|00005990| 20 32 2f 20 2b 0a 09 09 | 2d 31 20 72 6f 77 5f 6f | 2/ +...|-1 row_o|
|000059a0| 72 67 2b 20 20 61 74 2d | 78 79 20 20 69 20 5b 63 |rg+ at-|xy i [c|
|000059b0| 68 61 72 5d 20 61 20 2b | 20 65 6d 69 74 0a 09 6c |har] a +| emit..l|
|000059c0| 6f 6f 70 20 3b 0a 0a 3a | 20 64 69 73 5f 63 6f 6c |oop ;..:| dis_col|
|000059d0| 5f 6e 61 6d 65 73 09 09 | 09 09 09 5c 20 6c 61 62 |_names..|...\ lab|
|000059e0| 65 6c 20 72 6f 77 20 6e | 61 6d 65 73 20 66 72 6f |el row n|ames fro|
|000059f0| 6d 20 61 72 72 61 79 0a | 09 31 20 31 20 61 74 2d |m array.|.1 1 at-|
|00005a00| 78 79 20 2e 22 20 74 69 | 74 6c 65 22 09 09 09 5c |xy ." ti|tle"...\|
|00005a10| 20 6f 6e 6c 79 20 73 68 | 6f 77 20 6e 61 6d 65 73 | only sh|ow names|
|00005a20| 20 74 68 61 74 20 66 69 | 74 20 6f 6e 0a 09 63 6f | that fi|t on..co|
|00005a30| 6c 75 6d 6e 20 63 6f 6c | 73 2f 70 61 67 65 20 62 |lumn col|s/page b|
|00005a40| 6f 75 6e 64 73 09 09 09 | 5c 20 64 69 73 70 6c 61 |ounds...|\ displa|
|00005a50| 79 0a 09 64 6f 09 69 20 | 63 6f 6c 5f 6d 61 78 20 |y..do.i |col_max |
|00005a60| 3d 20 3f 6c 65 61 76 65 | 0a 09 09 69 20 63 6f 6c |= ?leave|...i col|
|00005a70| 75 6d 6e 20 2d 20 63 6f | 6c 75 6d 6e 2a 20 63 6f |umn - co|lumn* co|
|00005a80| 6c 5f 6f 72 67 2b 09 5c | 20 70 6c 61 63 65 20 63 |l_org+.\| place c|
|00005a90| 75 72 73 6f 72 20 61 74 | 20 6c 6f 63 61 74 69 6f |ursor at| locatio|
|00005aa0| 6e 0a 09 09 31 20 61 74 | 2d 78 79 20 20 69 20 63 |n...1 at|-xy i c|
|00005ab0| 6f 6c 5f 6e 61 6d 65 73 | 20 22 2e 09 09 5c 20 74 |ol_names| "...\ t|
|00005ac0| 79 70 65 20 72 65 71 75 | 69 72 65 64 20 23 20 6f |ype requ|ired # o|
|00005ad0| 66 20 63 68 61 72 61 63 | 74 65 72 73 0a 09 6c 6f |f charac|ters..lo|
|00005ae0| 6f 70 20 3b 0a 0a 3a 20 | 64 69 73 5f 73 74 61 74 |op ;..: |dis_stat|
|00005af0| 75 73 09 09 09 09 09 5c | 20 64 69 73 70 6c 61 79 |us.....\| display|
|00005b00| 20 73 70 72 65 61 64 20 | 73 68 65 65 74 20 73 74 | spread |sheet st|
|00005b10| 61 74 75 73 0a 09 36 30 | 20 66 72 6f 6d 2d 72 69 |atus..60| from-ri|
|00005b20| 67 68 74 20 20 34 20 66 | 72 6f 6d 2d 62 6f 74 74 |ght 4 f|rom-bott|
|00005b30| 6f 6d 20 61 74 2d 78 79 | 20 2e 22 20 70 6f 73 69 |om at-xy| ." posi|
|00005b40| 74 69 6f 6e 3a 20 22 0a | 09 72 6f 77 20 72 6f 77 |tion: ".|.row row|
|00005b50| 2d 64 69 73 70 20 2b 20 | 32 20 2e 72 20 20 63 6f |-disp + |2 .r co|
|00005b60| 6c 75 6d 6e 20 63 6f 6c | 2d 64 69 73 70 20 2b 20 |lumn col|-disp + |
|00005b70| 5b 63 68 61 72 5d 20 61 | 20 2b 20 65 6d 69 74 0a |[char] a| + emit.|
|00005b80| 09 33 30 20 66 72 6f 6d | 2d 72 69 67 68 74 20 20 |.30 from|-right |
|00005b90| 34 20 66 72 6f 6d 2d 62 | 6f 74 74 6f 6d 20 61 74 |4 from-b|ottom at|
|00005ba0| 2d 78 79 20 2e 22 20 6d | 6f 64 65 3a 20 22 20 6d |-xy ." m|ode: " m|
|00005bb0| 6f 64 65 5f 66 6c 61 67 | 20 40 0a 09 69 66 20 2e |ode_flag| @..if .|
|00005bc0| 22 20 61 75 74 6f 20 20 | 22 20 65 6c 73 65 20 2e |" auto |" else .|
|00005bd0| 22 20 6e 6f 72 6d 61 6c | 22 20 20 74 68 65 6e 0a |" normal|" then.|
|00005be0| 09 31 30 20 66 72 6f 6d | 2d 72 69 67 68 74 20 20 |.10 from|-right |
|00005bf0| 34 20 66 72 6f 6d 2d 62 | 6f 74 74 6f 6d 20 61 74 |4 from-b|ottom at|
|00005c00| 2d 78 79 20 2e 22 20 6f | 72 64 65 72 3a 20 22 20 |-xy ." o|rder: " |
|00005c10| 6f 72 64 65 72 5f 66 6c | 61 67 20 40 0a 09 69 66 |order_fl|ag @..if|
|00005c20| 20 2e 22 20 63 2f 72 22 | 20 20 20 20 65 6c 73 65 | ." c/r"| else|
|00005c30| 20 2e 22 20 72 2f 63 22 | 20 20 20 20 20 74 68 65 | ." r/c"| the|
|00005c40| 6e 0a 09 70 6f 73 32 20 | 20 70 6c 61 63 65 5f 63 |n..pos2 | place_c|
|00005c50| 65 6c 6c 5f 6d 61 72 6b | 65 72 09 09 09 5c 20 70 |ell_mark|er...\ p|
|00005c60| 6c 61 63 65 20 63 65 6c | 6c 20 6d 61 72 6b 65 72 |lace cel|l marker|
|00005c70| 20 6f 6e 20 64 69 73 70 | 6c 61 79 0a 09 70 6f 73 | on disp|lay..pos|
|00005c80| 31 20 20 2e 22 20 63 6f | 6d 6d 61 6e 64 3a 20 22 |1 ." co|mmand: "|
|00005c90| 20 3b 09 09 09 5c 20 6f | 75 74 70 75 74 20 63 6f | ;...\ o|utput co|
|00005ca0| 6d 6d 61 6e 64 20 70 72 | 6f 6d 70 74 0a 0a 3a 20 |mmand pr|ompt..: |
|00005cb0| 64 69 73 5f 72 6f 77 5f | 63 68 61 6e 67 65 09 09 |dis_row_|change..|
|00005cc0| 09 09 5c 20 64 69 73 70 | 6c 61 79 20 69 6e 74 6f |..\ disp|lay into|
|00005cd0| 20 74 68 61 74 20 63 68 | 61 6e 67 65 73 20 77 69 | that ch|anges wi|
|00005ce0| 74 68 0a 09 64 69 73 5f | 72 6f 77 5f 6e 61 6d 65 |th..dis_|row_name|
|00005cf0| 73 09 09 09 09 5c 20 61 | 20 72 6f 77 20 63 68 61 |s....\ a| row cha|
|00005d00| 6e 67 65 0a 09 64 69 73 | 5f 72 6f 77 5f 6c 61 62 |nge..dis|_row_lab|
|00005d10| 65 6c 73 09 09 09 09 5c | 20 72 6f 77 20 6e 61 6d |els....\| row nam|
|00005d20| 65 73 2c 20 6c 61 62 65 | 6c 73 20 61 6e 64 20 64 |es, labe|ls and d|
|00005d30| 61 74 61 0a 09 64 69 73 | 5f 64 61 74 61 20 3b 0a |ata..dis|_data ;.|
|00005d40| 0a 3a 20 64 69 73 5f 63 | 6f 6c 5f 63 68 61 6e 67 |.: dis_c|ol_chang|
|00005d50| 65 09 09 09 09 5c 20 64 | 69 73 70 6c 61 79 20 69 |e....\ d|isplay i|
|00005d60| 6e 74 6f 20 74 68 61 74 | 20 63 68 61 6e 67 65 73 |nto that| changes|
|00005d70| 20 77 69 74 68 0a 09 64 | 69 73 5f 63 6f 6c 5f 6e | with..d|is_col_n|
|00005d80| 61 6d 65 73 09 09 09 09 | 5c 20 61 20 63 6f 6c 20 |ames....|\ a col |
|00005d90| 63 68 61 6e 67 65 0a 09 | 64 69 73 5f 63 6f 6c 5f |change..|dis_col_|
|00005da0| 6c 61 62 65 6c 73 09 09 | 09 09 5c 20 63 6f 6c 20 |labels..|..\ col |
|00005db0| 6e 61 6d 65 73 2c 20 6c | 61 62 65 6c 73 20 61 6e |names, l|abels an|
|00005dc0| 64 20 64 61 74 61 0a 09 | 64 69 73 5f 64 61 74 61 |d data..|dis_data|
|00005dd0| 20 3b 0a 0a 63 72 65 61 | 74 65 20 61 70 70 6c 69 | ;..crea|te appli|
|00005de0| 63 61 74 69 6f 6e 2d 6e | 61 6d 65 20 68 65 72 65 |cation-n|ame here|
|00005df0| 20 20 32 30 20 61 6c 6c | 6f 74 20 32 30 20 65 72 | 20 all|ot 20 er|
|00005e00| 61 73 65 0a 09 70 22 20 | 6e 6f 6e 61 6d 65 22 20 |ase..p" |noname" |
|00005e10| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2d 6e 61 6d 65 |applicat|ion-name|
|00005e20| 20 22 63 6f 70 79 0a 0a | 3a 20 64 69 73 5f 73 63 | "copy..|: dis_sc|
|00005e30| 72 65 65 6e 09 09 5c 20 | 64 69 73 70 6c 61 79 20 |reen..\ |display |
|00005e40| 73 70 72 65 61 64 73 68 | 65 65 74 20 73 63 72 65 |spreadsh|eet scre|
|00005e50| 65 6e 0a 09 65 72 61 73 | 65 2d 73 63 72 65 65 6e |en..eras|e-screen|
|00005e60| 20 20 33 31 20 30 20 61 | 74 2d 78 79 0a 09 2e 22 | 31 0 a|t-xy..."|
|00005e70| 20 46 6f 72 74 68 20 53 | 70 72 65 61 64 73 68 65 | Forth S|preadshe|
|00005e80| 65 74 22 09 5c 20 64 69 | 73 70 6c 61 79 20 74 69 |et".\ di|splay ti|
|00005e90| 74 6c 65 0a 09 33 20 73 | 70 61 63 65 73 20 61 70 |tle..3 s|paces ap|
|00005ea0| 70 6c 69 63 61 74 69 6f | 6e 2d 6e 61 6d 65 20 22 |plicatio|n-name "|
|00005eb0| 2e 20 31 30 20 73 70 61 | 63 65 73 0a 09 64 69 73 |. 10 spa|ces..dis|
|00005ec0| 5f 62 6f 72 64 65 72 09 | 09 5c 20 64 72 61 77 20 |_border.|.\ draw |
|00005ed0| 62 6f 72 64 65 72 73 0a | 09 64 69 73 5f 6d 65 6e |borders.|.dis_men|
|00005ee0| 75 09 09 5c 20 64 69 73 | 70 6c 61 79 20 6f 70 65 |u..\ dis|play ope|
|00005ef0| 72 61 74 69 6f 6e 20 6d | 65 6e 75 0a 09 64 69 73 |ration m|enu..dis|
|00005f00| 5f 63 6f 6c 5f 6c 61 62 | 65 6c 73 09 09 5c 20 6c |_col_lab|els..\ l|
|00005f10| 61 62 65 6c 20 63 6f 6c | 75 6d 6e 73 20 28 61 2d |abel col|umns (a-|
|00005f20| 7a 29 0a 09 64 69 73 5f | 63 6f 6c 5f 6e 61 6d 65 |z)..dis_|col_name|
|00005f30| 73 09 09 5c 20 64 69 73 | 70 6c 61 79 20 63 6f 6c |s..\ dis|play col|
|00005f40| 75 6d 6e 20 6e 61 6d 65 | 73 0a 09 64 69 73 5f 72 |umn name|s..dis_r|
|00005f50| 6f 77 5f 6c 61 62 65 6c | 73 09 09 5c 20 6c 61 62 |ow_label|s..\ lab|
|00005f60| 65 6c 20 72 6f 77 73 20 | 20 20 20 28 30 2d 39 39 |el rows | (0-99|
|00005f70| 29 0a 09 64 69 73 5f 72 | 6f 77 5f 6e 61 6d 65 73 |)..dis_r|ow_names|
|00005f80| 09 09 5c 20 64 69 73 70 | 6c 61 79 20 72 6f 77 20 |..\ disp|lay row |
|00005f90| 6e 61 6d 65 73 0a 09 64 | 69 73 5f 64 61 74 61 09 |names..d|is_data.|
|00005fa0| 09 5c 20 64 69 73 70 6c | 61 79 20 61 70 70 72 6f |.\ displ|ay appro|
|00005fb0| 70 72 69 61 74 65 20 64 | 61 74 61 0a 09 09 09 09 |priate d|ata.....|
|00005fc0| 5c 20 66 6f 72 20 64 61 | 74 61 20 77 69 6e 64 6f |\ for da|ta windo|
|00005fd0| 77 20 6f 6e 20 64 69 73 | 70 6c 61 79 0a 09 64 69 |w on dis|play..di|
|00005fe0| 73 5f 73 74 61 74 75 73 | 20 20 3b 09 09 5c 20 64 |s_status| ;..\ d|
|00005ff0| 69 73 70 6c 61 79 20 73 | 74 61 74 75 73 0a 0a 5c |isplay s|tatus..\|
|00006000| 20 63 65 6c 6c 20 63 61 | 6c 63 75 6c 61 74 69 6f | cell ca|lculatio|
|00006010| 6e 20 77 6f 72 64 73 0a | 0a 3a 20 63 61 6c 63 75 |n words.|.: calcu|
|00006020| 6c 61 74 65 09 09 09 5c | 20 63 61 6c 63 20 66 6f |late...\| calc fo|
|00006030| 72 6d 75 6c 61 20 6f 66 | 20 63 65 6c 6c 20 69 66 |rmula of| cell if|
|00006040| 20 69 74 20 68 61 73 20 | 6f 6e 65 0a 09 40 20 3f | it has |one..@ ?|
|00006050| 64 75 70 20 69 66 20 65 | 78 65 63 75 74 65 20 74 |dup if e|xecute t|
|00006060| 68 65 6e 20 20 3b 20 28 | 20 63 65 6c 6c 20 61 64 |hen ; (| cell ad|
|00006070| 64 72 20 2d 2d 29 0a 0a | 3a 20 63 61 6c 63 5f 63 |dr --)..|: calc_c|
|00006080| 2f 72 09 09 09 5c 20 63 | 61 6c 63 20 63 6f 6c 75 |/r...\ c|alc colu|
|00006090| 6d 6e 20 74 68 65 6e 20 | 72 6f 77 73 0a 09 72 6f |mn then |rows..ro|
|000060a0| 77 5f 6d 61 78 20 30 0a | 09 64 6f 09 63 6f 6c 5f |w_max 0.|.do.col_|
|000060b0| 6d 61 78 20 30 0a 09 09 | 64 6f 09 6a 20 69 20 73 |max 0...|do.j i s|
|000060c0| 70 63 65 6c 6c 73 20 63 | 61 6c 63 75 6c 61 74 65 |pcells c|alculate|
|000060d0| 0a 09 09 6c 6f 6f 70 09 | 09 5c 20 67 65 74 20 61 |...loop.|.\ get a|
|000060e0| 6e 64 20 65 78 65 63 75 | 74 65 20 66 6f 72 6d 75 |nd execu|te formu|
|000060f0| 6c 61 0a 09 6c 6f 6f 70 | 20 20 3b 0a 0a 3a 20 63 |la..loop| ;..: c|
|00006100| 61 6c 63 5f 72 2f 63 09 | 09 09 5c 20 63 61 6c 63 |alc_r/c.|..\ calc|
|00006110| 20 72 6f 77 73 20 74 68 | 65 6e 20 63 6f 6c 75 6d | rows th|en colum|
|00006120| 6e 73 0a 09 63 6f 6c 5f | 6d 61 78 20 30 0a 09 64 |ns..col_|max 0..d|
|00006130| 6f 09 72 6f 77 5f 6d 61 | 78 20 30 0a 09 09 64 6f |o.row_ma|x 0...do|
|00006140| 09 69 20 6a 20 73 70 63 | 65 6c 6c 73 20 63 61 6c |.i j spc|ells cal|
|00006150| 63 75 6c 61 74 65 0a 09 | 09 6c 6f 6f 70 09 09 5c |culate..|.loop..\|
|00006160| 20 67 65 74 20 61 6e 64 | 20 65 78 65 63 75 74 65 | get and| execute|
|00006170| 20 66 6f 72 6d 75 6c 61 | 0a 09 6c 6f 6f 70 20 20 | formula|..loop |
|00006180| 3b 0a 0a 3a 20 63 61 6c | 63 5f 63 65 6c 6c 73 09 |;..: cal|c_cells.|
|00006190| 09 09 5c 20 64 65 74 65 | 72 6d 69 6e 65 20 77 68 |..\ dete|rmine wh|
|000061a0| 69 63 68 20 74 6f 20 63 | 61 6c 20 66 69 72 73 74 |ich to c|al first|
|000061b0| 0a 09 6f 72 64 65 72 5f | 66 6c 61 67 20 40 09 09 |..order_|flag @..|
|000061c0| 5c 20 62 79 20 73 74 61 | 74 65 20 6f 66 20 6f 72 |\ by sta|te of or|
|000061d0| 64 65 72 5f 66 6c 61 67 | 0a 09 69 66 20 63 61 6c |der_flag|..if cal|
|000061e0| 63 5f 63 2f 72 20 65 6c | 73 65 20 63 61 6c 63 5f |c_c/r el|se calc_|
|000061f0| 72 2f 63 20 74 68 65 6e | 20 3b 0a 0a 3a 20 63 61 |r/c then| ;..: ca|
|00006200| 6c 63 5f 6f 72 64 65 72 | 09 09 09 5c 20 70 72 6f |lc_order|...\ pro|
|00006210| 6d 70 74 20 75 73 65 72 | 20 66 6f 72 20 63 61 6c |mpt user| for cal|
|00006220| 63 20 6f 72 64 65 72 0a | 09 70 6f 73 31 20 2e 22 |c order.|.pos1 ."|
|00006230| 20 73 70 65 63 69 66 79 | 20 63 61 6c 63 75 6c 61 | specify| calcula|
|00006240| 74 69 6f 6e 20 6f 72 64 | 65 72 22 0a 09 70 6f 73 |tion ord|er"..pos|
|00006250| 32 20 2e 22 20 72 6f 77 | 2f 63 6f 6c 28 30 29 20 |2 ." row|/col(0) |
|00006260| 6f 72 20 63 6f 6c 2f 72 | 6f 77 28 31 29 3a 20 22 |or col/r|ow(1): "|
|00006270| 0a 09 73 6b 65 79 20 20 | 5b 63 68 61 72 5d 20 31 |..skey |[char] 1|
|00006280| 20 3d 20 20 6f 72 64 65 | 72 5f 66 6c 61 67 20 21 | = orde|r_flag !|
|00006290| 20 3b 0a 0a 5c 20 63 65 | 6c 6c 20 6d 61 72 6b 65 | ;..\ ce|ll marke|
|000062a0| 72 20 70 6f 73 69 74 69 | 6f 6e 69 6e 67 20 77 6f |r positi|oning wo|
|000062b0| 72 64 73 0a 0a 3a 20 6c | 65 66 74 5f 61 72 72 6f |rds..: l|eft_arro|
|000062c0| 77 09 09 09 09 5c 20 6d | 6f 76 65 20 63 65 6c 6c |w....\ m|ove cell|
|000062d0| 20 6d 61 72 6b 65 72 20 | 6c 65 66 74 20 31 20 63 | marker |left 1 c|
|000062e0| 65 6c 6c 0a 09 63 6f 6c | 2d 64 69 73 70 20 30 3d |ell..col|-disp 0=|
|000062f0| 09 09 09 5c 20 63 65 6c | 6c 20 6d 61 72 6b 20 61 |...\ cel|l mark a|
|00006300| 74 20 6c 65 66 74 20 6f | 66 20 64 69 73 70 6c 61 |t left o|f displa|
|00006310| 79 20 3f 0a 09 69 66 09 | 63 6f 6c 75 6d 6e 20 30 |y ?..if.|column 0|
|00006320| 3c 3e 09 09 5c 20 69 66 | 20 73 6f 20 69 73 20 69 |<>..\ if| so is i|
|00006330| 74 20 61 74 20 66 69 72 | 73 74 20 63 6f 6c 75 6d |t at fir|st colum|
|00006340| 6e 20 20 3f 0a 09 09 69 | 66 09 2d 31 20 63 75 72 |n ?...i|f.-1 cur|
|00006350| 5f 63 6f 6c 20 2b 21 09 | 5c 20 6d 6f 76 65 20 64 |_col +!.|\ move d|
|00006360| 69 73 70 6c 61 79 20 63 | 6f 6c 75 6d 6e 20 6c 65 |isplay c|olumn le|
|00006370| 66 74 20 6f 6e 63 65 0a | 09 09 09 64 69 73 5f 63 |ft once.|...dis_c|
|00006380| 6f 6c 5f 63 68 61 6e 67 | 65 09 5c 20 73 63 72 6f |ol_chang|e.\ scro|
|00006390| 6c 6c 20 64 69 73 70 6c | 61 79 20 6c 65 66 74 0a |ll displ|ay left.|
|000063a0| 09 09 74 68 65 6e 09 09 | 09 5c 20 69 66 20 61 74 |..then..|.\ if at|
|000063b0| 20 66 69 72 73 74 20 63 | 6f 6c 75 6d 6e 20 69 67 | first c|olumn ig|
|000063c0| 6e 6f 72 65 0a 09 65 6c | 73 65 09 09 09 09 5c 20 |nore..el|se....\ |
|000063d0| 63 65 6c 6c 20 6d 61 72 | 6b 20 6e 6f 74 20 61 74 |cell mar|k not at|
|000063e0| 20 6c 65 66 74 20 63 6f | 6c 75 6d 6e 0a 09 09 65 | left co|lumn...e|
|000063f0| 72 61 73 65 5f 63 65 6c | 6c 5f 6d 61 72 6b 65 72 |rase_cel|l_marker|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.